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>
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;
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();
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;
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();