Bugzilla – Attachment 114135 Details for
Bug 26405
Circulation.t fails on 'AddRenewal left both fines'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26405: Prevent Circulation.t failing on 'AddRenewal left both fines'
0001-Bug-26405-Prevent-Circulation.t-failing-on.patch (text/plain), 1.34 KB, created by
Emmi Takkinen
on 2020-12-03 08:46:06 UTC
(
hide
)
Description:
Bug 26405: Prevent Circulation.t failing on 'AddRenewal left both fines'
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2020-12-03 08:46:06 UTC
Size:
1.34 KB
patch
obsolete
>From 5d3d56277ff7099e13b386d3719bf7e7020a4d92 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@outlook.com> >Date: Thu, 3 Dec 2020 10:41:47 +0200 >Subject: [PATCH] Bug 26405: Prevent Circulation.t failing on 'AddRenewal left > both fines' > >Bug 23051 added option to skip calculating fines even when >"CalculateFinesOnReturn" is enabled. Due this Circulation.t >fails on test "AddRenewal left both fines" if >"CalculateFinesOnReturn" is disabled on ones system. >Mocking syspref while testing fixes failig tests. > >To test: >1. Disable "CalculateFinesOnReturn". >2. Run prove t/db_dependent/Circulation.t >=> Tests fail >3. Apply patch. >4. Run prove t/db_dependent/Circulation.t again >=> Tests are succesful >--- > 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 f29c175aef..cd626c98de 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -564,6 +564,9 @@ subtest "CanBookBeRenewed tests" => sub { > } > ); > >+ #Make sure fine calculation isn't skipped when adding renewal >+ t::lib::Mocks::mock_preference('CalculateFinesOnReturn', 1); >+ > t::lib::Mocks::mock_preference('RenewalLog', 0); > my $date = output_pref( { dt => dt_from_string(), dateonly => 1, dateformat => 'iso' } ); > my %params_renewal = ( >-- >2.17.1 >
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 26405
:
114135
|
118342
|
120122