Bug 18999 (follow-up) - Fix failing test
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 30 Oct 2017 12:47:02 +0000 (12:47 +0000)
committerKatrin 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

index 927c31c..b8e423a 100755 (executable)
@@ -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, '' );