Bug 30362: Fix unit test
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 95aa1c3da5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
a419589998
commit
b0fa0150b8
|
|
@ -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"'
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue