Bugzilla – Attachment 46738 Details for
Bug 15586
References to Koha::Branches remain in unit tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15586 - References to Koha::Branches remain in unit tests
Bug-15586---References-to-KohaBranches-remain-in-u.patch (text/plain), 2.00 KB, created by
Kyle M Hall (khall)
on 2016-01-16 01:28:54 UTC
(
hide
)
Description:
Bug 15586 - References to Koha::Branches remain in unit tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-01-16 01:28:54 UTC
Size:
2.00 KB
patch
obsolete
>From 1ab2eef28110d16ba6ab9237835f8dcc6f865fe6 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Sat, 16 Jan 2016 01:28:45 +0000 >Subject: [PATCH] Bug 15586 - References to Koha::Branches remain in unit tests > >The unit tests BiblioObject.t and Hold.t still have references to >Koha::Branches that need to be changed to Koha::Libraries. These tests >currently fail because of this. > >Test Plan: >1) prove t/db_dependent/BiblioObject.t should fail >2) prove t/db_dependent/Hold.t should fail >3) Apply this patch >1) prove t/db_dependent/BiblioObject.t should pass >2) prove t/db_dependent/Hold.t should pass >--- > t/db_dependent/BiblioObject.t | 4 ++-- > t/db_dependent/Hold.t | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/BiblioObject.t b/t/db_dependent/BiblioObject.t >index c4710eb..7f8ef1a 100755 >--- a/t/db_dependent/BiblioObject.t >+++ b/t/db_dependent/BiblioObject.t >@@ -20,7 +20,7 @@ use Modern::Perl; > use C4::Context; > use C4::Biblio qw( AddBiblio ); > use Koha::Database; >-use Koha::Branches; >+use Koha::Libraries; > use Koha::Borrowers; > > use Test::More tests => 4; >@@ -34,7 +34,7 @@ $schema->storage->txn_begin(); > my $dbh = C4::Context->dbh; > $dbh->{RaiseError} = 1; > >-my @branches = Koha::Branches->search(); >+my @branches = Koha::Libraries->search(); > my $borrower = Koha::Borrowers->search()->next(); > > my $biblio = MARC::Record->new(); >diff --git a/t/db_dependent/Hold.t b/t/db_dependent/Hold.t >index ae8c19d..820346d 100755 >--- a/t/db_dependent/Hold.t >+++ b/t/db_dependent/Hold.t >@@ -21,7 +21,7 @@ use C4::Context; > use C4::Biblio qw( AddBiblio ); > use Koha::Database; > use Koha::Borrowers; >-use Koha::Branches; >+use Koha::Libraries; > use Koha::Item; > > use Test::More tests => 23; >@@ -34,7 +34,7 @@ $schema->storage->txn_begin(); > my $dbh = C4::Context->dbh; > $dbh->{RaiseError} = 1; > >-my @branches = Koha::Branches->search(); >+my @branches = Koha::Libraries->search(); > my $borrower = Koha::Borrowers->search()->next(); > > my $biblio = MARC::Record->new(); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15586
:
46730
|
46738
|
46740
|
46763