Bug 14494: Add some unit tests too for CalcDateDue
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 9 Jul 2015 13:35:53 +0000 (15:35 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 29 Jul 2015 20:33:33 +0000 (08:33 +1200)
commit7abf1d9a184dd7cc2805f05e921a883871092b33
treecdfc847c6f69b52919d3b6cd9424d17ad1ff58ee
parent58b5b915a0ba4c86639a260b53dd0ad89320ec36
Bug 14494: Add some unit tests too for CalcDateDue

The second patch of this report made some changes to CalcDateDue.
We are adding some unit tests here.
See the commments on the third patch too.

Test plan:
Run t/db_dependent/Circulation_dateexpiry.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: Set the number of tests for the second subtest (was
commented) and perltidy the second block.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 1a8962f306d2d2f0c7789c649aa615192ccd5ca1)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
t/db_dependent/Circulation_dateexpiry.t