View | Details | Raw Unified | Return to bug 30362
Collapse All | Expand All

(-)a/t/db_dependent/Circulation.t (-4 / +3 lines)
Lines 5788-5794 subtest "SendCirculationAlert" => sub { Link Here
5788
};
5788
};
5789
5789
5790
subtest "GetSoonestRenewDate tests" => sub {
5790
subtest "GetSoonestRenewDate tests" => sub {
5791
    plan tests => 5;
5791
    plan tests => 6;
5792
    Koha::CirculationRules->set_rule(
5792
    Koha::CirculationRules->set_rule(
5793
        {
5793
        {
5794
            categorycode => undef,
5794
            categorycode => undef,
Lines 5871-5878 subtest "GetSoonestRenewDate tests" => sub { Link Here
5871
    );
5871
    );
5872
    $issue->date_due( dt_from_string )->store;
5872
    $issue->date_due( dt_from_string )->store;
5873
    is(
5873
    is(
5874
        GetSoonestRenewDate( $patron->id, $item->itemnumber ),
5874
        GetSoonestRenewDate( $patron, $issue ),
5875
        dt_from_string->truncate( to => 'day' ),
5875
        dt_from_string->subtract( days => 1 )->truncate( to => 'day' ),
5876
        'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"'
5876
        'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"'
5877
    );
5877
    );
5878
};
5878
};
5879
- 

Return to bug 30362