projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a84c842
)
Bug 18999 (follow-up) - Fix failing test
author
Katrin Fischer
<katrin.fischer.83@web.de>
Mon, 30 Oct 2017 12:47:02 +0000 (12:47 +0000)
committer
Katrin Fischer
<katrin.fischer.83@web.de>
Mon, 30 Oct 2017 12:47:02 +0000 (12:47 +0000)
Test was using methods not present in 16.11.x,
fixed by rewriting to old API.
t/db_dependent/Budgets.t
patch
|
blob
|
history
diff --git
a/t/db_dependent/Budgets.t
b/t/db_dependent/Budgets.t
index
927c31c
..
b8e423a
100755
(executable)
--- a/
t/db_dependent/Budgets.t
+++ b/
t/db_dependent/Budgets.t
@@
-417,7
+417,7
@@
my $fund = AddBudget(
}
);
-my $vendor = Koha::Acquisition::Bookseller->new(
+my $vendorid = C4::Bookseller::AddBookseller(
{
name => "test vendor",
address1 => "test address",
@@
-425,9
+425,7
@@
my $vendor = Koha::Acquisition::Bookseller->new(
active => 1,
deliverytime => 5,
}
-)->store;
-
-my $vendorid = $vendor->id;
+);
my $basketnumber = C4::Acquisition::NewBasket( $vendorid, 1 );
my ( $biblio, $biblioitem ) = C4::Biblio::AddBiblio( MARC::Record->new, '' );