From 57e207e6777d54bf76b086df73ed3d19c4ab6f3c 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 Signed-off-by: Trevor Diamond --- 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 ade7d897150..dc0183d0241 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