Bug 15586 - References to Koha::Branches remain in unit tests
authorKyle M Hall <kyle@bywatersolutions.com>
Sat, 16 Jan 2016 01:28:45 +0000 (01:28 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 19 Jan 2016 12:32:39 +0000 (12:32 +0000)
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

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/BiblioObject.t
t/db_dependent/Hold.t

index c4710eb..7f8ef1a 100755 (executable)
@@ -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();
index ae8c19d..820346d 100755 (executable)
@@ -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();