From 5f339649677e4d2dee541f9602be83b645742d13 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] [PASSED QA] 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

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 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();
-- 
1.9.1