Bugzilla – Attachment 192199 Details for
Bug 30331
Allow RenewalPeriodBase behavior to differ between manual and automatic renewals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30331: Update tests, mock the system preference
Bug-30331-Update-tests-mock-the-system-preference.patch (text/plain), 856 bytes, created by
Lucas Gass (lukeg)
on 2026-01-29 20:26:10 UTC
(
hide
)
Description:
Bug 30331: Update tests, mock the system preference
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-01-29 20:26:10 UTC
Size:
856 bytes
patch
obsolete
>From 2800094b725560d366d970efdc26499aacff668b Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 29 Jan 2026 20:24:37 +0000 >Subject: [PATCH] Bug 30331: Update tests, mock the system preference > >--- > t/db_dependent/Circulation.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index f67375c9e03..97894daae45 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -5720,6 +5720,9 @@ subtest 'AddRenewal() adds to renewals' => sub { > > set_userenv( $library->unblessed ); > >+ #mock the system preference >+ t::lib::Mocks::mock_preference( 'AutomaticRenewalPeriodBase', 'now' ); >+ > # Check the item out > my $issue = AddIssue( $patron, $item->barcode ); > is( ref($issue), 'Koha::Checkout', 'Issue added' ); >-- >2.39.5
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 30331
:
187537
|
187543
|
187552
|
187553
|
187757
|
187758
|
187759
|
187760
|
187761
|
187762
|
187763
|
187764
|
191219
|
191220
|
191221
|
191222
|
191223
|
192195
|
192196
|
192197
|
192198
| 192199