From 1ab2eef28110d16ba6ab9237835f8dcc6f865fe6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall 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