From 160f61b478148ba2438c0ebdf275181bd66a27af Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 7 Oct 2025 19:28:27 +0000 Subject: [PATCH] Bug 40969: Mock the enewalPeriodBase preference correctly --- t/db_dependent/Circulation.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index e663e3e6f3f..d7ed1b671d5 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -339,6 +339,8 @@ subtest 'AddIssue | renewal when adding issue to same borrower' => sub { my $staff = $builder->build_object( { class => "Koha::Patrons" } ); t::lib::Mocks::mock_userenv( { patron => $staff } ); + t::lib::Mocks::mock_preference( 'RenewalPeriodBase', 'date_due' ); + my $issue = AddIssue( $patron, $item->barcode ); is( dt_from_string( $issue->date_due )->truncate( to => 'day' ), $seven_days, "Item issued for correct term" ); $issue = AddIssue( $patron, $item->barcode ); -- 2.39.5