From c138e324b934e2c2cf13b49b1aa9fd21bfaa0831 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 27 Aug 2025 14:42:18 +0100 Subject: [PATCH] Bug 9762: (follow-up) Fix failing Circulation.t test The test was failing with RegisterRequired exception because payin_amount() requires a cash register when UseCashRegisters preference is enabled. Fixed by setting UseCashRegisters to 0 in the lost item return policies test to allow payments without requiring a cash register. Signed-off-by: Martin Renvoize --- t/db_dependent/Circulation.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 48b4c02d2f0..b78dca3eff7 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -4111,6 +4111,7 @@ subtest 'AddReturn | is_overdue' => sub { 'NoRefundOnLostReturnedItemsAge', undef ); + t::lib::Mocks::mock_preference( 'UseCashRegisters', 0 ); subtest 'lostreturn | refund_unpaid' => sub { plan tests => 21; -- 2.51.0