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 <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4bcbbd8722)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
71e462f7ef
commit
df6a9ab122
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue