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

(-)a/t/db_dependent/Circulation.t (-1 / +17 lines)
Lines 5278-5283 subtest "GetSoonestRenewDate tests" => sub { Link Here
5278
        $datedue,
5278
        $datedue,
5279
        'Checkouts with auto-renewal can be renewed earliest on due date if no renewalbefore'
5279
        'Checkouts with auto-renewal can be renewed earliest on due date if no renewalbefore'
5280
    );
5280
    );
5281
5282
    t::lib::Mocks::mock_preference( 'NoRenewalBeforePrecision', 'date' );
5283
    Koha::CirculationRules->set_rule(
5284
        {
5285
            categorycode => undef,
5286
            branchcode   => undef,
5287
            itemtype     => undef,
5288
            rule_name    => 'norenewalbefore',
5289
            rule_value   => 1,
5290
        }
5291
    );
5292
    $issue->date_due( dt_from_string )->store;
5293
    is(
5294
        GetSoonestRenewDate( $patron->id, $item->itemnumber ),
5295
        dt_from_string->truncate( to => 'day' ),
5296
        'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"'
5297
    );
5281
};
5298
};
5282
5299
5283
$schema->storage->txn_rollback;
5300
$schema->storage->txn_rollback;
5284
- 

Return to bug 30362