From 0723661c87392e30ac4a75539fe189f81f7dbc33 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Thu, 31 Aug 2023 12:36:58 +0100 Subject: [PATCH] Revert "Bug 30362: Unit test" This reverts commit 038e88a4bd14ff4727e90f7d4a1db05be4755361. --- t/db_dependent/Circulation.t | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 4a59c1db0a..072ec5e8cc 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -5764,23 +5764,6 @@ subtest "GetSoonestRenewDate tests" => sub { $datedue, 'Checkouts with auto-renewal can be renewed earliest on due date if no renewalbefore' ); - - t::lib::Mocks::mock_preference( 'NoRenewalBeforePrecision', 'date' ); - Koha::CirculationRules->set_rule( - { - categorycode => undef, - branchcode => undef, - itemtype => undef, - rule_name => 'norenewalbefore', - rule_value => 1, - } - ); - $issue->date_due( dt_from_string )->store; - is( - GetSoonestRenewDate( $patron->id, $item->itemnumber ), - dt_from_string->truncate( to => 'day' ), - 'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"' - ); }; subtest "CanBookBeIssued + needsconfirmation message" => sub { -- 2.39.2