Bug 18999 (follow-up) - Fix failing test

Test was using methods not present in 16.11.x,
fixed by rewriting to old API.
This commit is contained in:
Katrin Fischer 2017-10-30 12:47:02 +00:00
parent a84c842f09
commit 389dd63c4e
1 changed files with 2 additions and 4 deletions

View File

@ -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, '' );