diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 2ac1d43bcc..1602bb3c65 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -5687,7 +5687,7 @@ subtest "SendCirculationAlert" => sub { }; subtest "GetSoonestRenewDate tests" => sub { - plan tests => 5; + plan tests => 6; Koha::CirculationRules->set_rule( { categorycode => undef, @@ -5770,8 +5770,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"' ); };