Bugzilla – Attachment 188172 Details for
Bug 40969
Circulation.t fails if RenewalPeriodBase is set to now ( the current date )
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40969: Mock the RenewalPeriodBase preference correctly
Bug-40969-Mock-the-RenewalPeriodBase-preference-co.patch (text/plain), 1.12 KB, created by
Nick Clemens (kidclamp)
on 2025-10-20 16:17:37 UTC
(
hide
)
Description:
Bug 40969: Mock the RenewalPeriodBase preference correctly
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-10-20 16:17:37 UTC
Size:
1.12 KB
patch
obsolete
>From 9adc6617b0bc3b047badc9cdf67fbf5afba2c28c Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 7 Oct 2025 19:28:27 +0000 >Subject: [PATCH] Bug 40969: Mock the RenewalPeriodBase preference correctly > >Signed-off-by: Trevor Diamond <trevor.diamond@mainlib.org> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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
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 40969
:
187550
|
187756
|
188026
| 188172