https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31493

Emmi Takkinen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|[email protected]    |[email protected]

--- Comment #1 from Emmi Takkinen <[email protected]> ---
Created attachment 139995
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139995&action=edit
Bug 31493: Prevent Circulation.t failing on "AddRenewal left both fines"

If one has syspref "RenewalPeriodBase" set as "the current date"
Circulation.t tests fail on "AddRenewal left both fines". This causes
one of the test fines to be dropped/charged. Mocking syspref
"RenewalPeriodBase" as "the old due date of the checkout" solves the issue.

To test:
1. Have syspref "RenewalPeriodBase" set as "the current date".
2. Run prove t/db_dependent/Circulation.t.
=> Tests fail.
3. Apply patch.
4. Run tests again.
=> Tests pass.

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to