From dc012c6685431214c9e67dc61e7c3fdfe25511fd Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 20 Jul 2023 02:39:18 +0000 Subject: [PATCH] Bug 30362: Fix unit test Signed-off-by: Sam Lau --- t/db_dependent/Circulation.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 7b1e063da3..f9a7c49a9d 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -5788,7 +5788,7 @@ subtest "SendCirculationAlert" => sub { }; subtest "GetSoonestRenewDate tests" => sub { - plan tests => 5; + plan tests => 6; Koha::CirculationRules->set_rule( { categorycode => undef, @@ -5871,8 +5871,8 @@ subtest "GetSoonestRenewDate tests" => sub { ); $issue->date_due( dt_from_string )->store; is( - GetSoonestRenewDate( $patron->id, $item->itemnumber ), - dt_from_string->truncate( to => 'day' ), + GetSoonestRenewDate( $patron, $issue ), + dt_from_string->subtract( days => 1 )->truncate( to => 'day' ), 'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"' ); }; -- 2.30.2