From 2800094b725560d366d970efdc26499aacff668b Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 29 Jan 2026 20:24:37 +0000 Subject: [PATCH] Bug 30331: Update tests, mock the system preference --- t/db_dependent/Circulation.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index f67375c9e03..97894daae45 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -5720,6 +5720,9 @@ subtest 'AddRenewal() adds to renewals' => sub { set_userenv( $library->unblessed ); + #mock the system preference + t::lib::Mocks::mock_preference( 'AutomaticRenewalPeriodBase', 'now' ); + # Check the item out my $issue = AddIssue( $patron, $item->barcode ); is( ref($issue), 'Koha::Checkout', 'Issue added' ); -- 2.39.5