Bugzilla – Attachment 187550 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 enewalPeriodBase preference correctly
Bug-40969-Mock-the-enewalPeriodBase-preference-cor.patch (text/plain), 1.00 KB, created by
Lucas Gass (lukeg)
on 2025-10-07 19:29:06 UTC
(
hide
)
Description:
Bug 40969: Mock the enewalPeriodBase preference correctly
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-10-07 19:29:06 UTC
Size:
1.00 KB
patch
obsolete
>From 160f61b478148ba2438c0ebdf275181bd66a27af 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 enewalPeriodBase preference correctly > >--- > 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 e663e3e6f3f..d7ed1b671d5 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