From 5d7d741dc4043673202cc41e6e710cce81f57278 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 28 Jan 2019 20:14:27 +0000 Subject: [PATCH] Bug 21798: (RM follow-up) Fix a few added tests Signed-off-by: Nick Clemens --- t/db_dependent/Circulation.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index ce18d5e291..abd8d4cb79 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -2302,13 +2302,13 @@ subtest '_FixAccountForLostAndReturned' => sub { replacementprice => $replacement_amount, itype => $item_type->itemtype }, - $biblionumber + $biblio->biblionumber ); AddIssue( $patron->unblessed, $barcode ); # Simulate item marked as lost - ModItem( { itemlost => 1 }, $biblionumber, $item_id ); + ModItem( { itemlost => 1 }, $biblio->biblionumber, $item_id ); LostItem( $item_id, 1 ); my $lost_fee_lines = Koha::Account::Lines->search( @@ -2902,7 +2902,7 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { value => { branchcode => $library->id } }); - my ( $biblionumber, $biblioitemnumber ) = add_biblio( $title, $author ); + my $biblio = $builder->build_sample_biblio({ title=> $title, author => $author }); my ( undef, undef, $item_id ) = AddItem( { homebranch => $library->id, @@ -2911,7 +2911,7 @@ subtest 'AddRenewal and AddIssuingCharge tests' => sub { replacementprice => 23.00, itype => $itemtype->id }, - $biblionumber + $biblio->biblionumber ); my $item = Koha::Items->find( $item_id ); -- 2.39.5