From 23ba32f5d2d1bb13f647939eb1a64e37dcfd17c5 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 25 Oct 2020 17:35:26 +1300 Subject: [PATCH] Bug 19532: (follow-up) Fixing failing CalcFine.t test --- t/db_dependent/Circulation/CalcFine.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Circulation/CalcFine.t b/t/db_dependent/Circulation/CalcFine.t index 3989471be8..e6ce1d664a 100755 --- a/t/db_dependent/Circulation/CalcFine.t +++ b/t/db_dependent/Circulation/CalcFine.t @@ -230,20 +230,20 @@ subtest 'Recall overdue fines' => sub { my $recall = Koha::Recall->new({ borrowernumber => $patron->{borrowernumber}, recalldate => dt_from_string, - biblionumber => $item->{biblionumber}, + biblionumber => $item->biblionumber, branchcode => $branch->{branchcode}, status => 'R', - itemnumber => $item->{itemnumber}, + itemnumber => $item->itemnumber, expirationdate => undef, item_level_recall => 1 })->store; $recall->set_overdue; - my ($amount) = CalcFine( $item, $patron->{categorycode}, $branch->{branchcode}, $start_dt, $end_dt ); + my ($amount) = CalcFine( $item->unblessed, $patron->{categorycode}, $branch->{branchcode}, $start_dt, $end_dt ); is( int($amount), 25, 'Use recall fine amount specified in circulation rules' ); $recall->set_finished; - ($amount) = CalcFine( $item, $patron->{categorycode}, $branch->{branchcode}, $start_dt, $end_dt ); + ($amount) = CalcFine( $item->unblessed, $patron->{categorycode}, $branch->{branchcode}, $start_dt, $end_dt ); is( int($amount), 5, 'With no recall, use normal fine amount' ); -- 2.11.0