Bugzilla – Attachment 185826 Details for
Bug 9762
Log circulation overrides
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9762: (follow-up) Fix failing Circulation.t test
Bug-9762-follow-up-Fix-failing-Circulationt-test.patch (text/plain), 1.11 KB, created by
Martin Renvoize (ashimema)
on 2025-08-27 14:35:54 UTC
(
hide
)
Description:
Bug 9762: (follow-up) Fix failing Circulation.t test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-08-27 14:35:54 UTC
Size:
1.11 KB
patch
obsolete
>From c138e324b934e2c2cf13b49b1aa9fd21bfaa0831 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >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 <martin.renvoize@openfifth.co.uk> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9762
:
149554
|
156222
|
163847
|
164022
|
164067
|
164068
|
164302
|
164387
|
164426
|
164479
|
164508
|
164509
|
164510
|
164519
|
170271
|
170272
|
170273
|
176742
|
177294
|
177295
|
177296
|
178029
|
178030
|
178031
|
178036
|
181303
|
181304
|
181305
|
181306
|
181307
|
181308
|
181340
|
181341
|
181342
|
181343
|
181344
|
181345
|
181346
|
181357
|
181358
|
181359
|
181360
|
181361
|
181362
|
181363
|
181371
|
181381
|
181390
|
181393
|
181545
|
181546
|
185118
|
185314
|
185315
|
185316
|
185317
|
185318
|
185319
|
185320
|
185321
|
185322
|
185323
|
185815
|
185816
|
185817
|
185818
|
185819
|
185820
|
185821
|
185822
|
185823
|
185824
|
185825
| 185826 |
185827