Koha-clms/t/db_dependent/Circulation
Jonathan Druart 9f075a4fdb Bug 20145: Do not insert 0000-00-00 in patron tests (and more)
We should call Koha::Patron->is_expired in CanBookBeIssued instead of
doing the same calculation.

Tests have been adapted to pass with new SQL modes.

We should not need to update the values in DB, we already have
  Bug 14717: Prevent 0000-00-00 dates in patron data (3.21.00.023)

Test plan:
  prove t/db_dependent/Circulation/dateexpiry.t
  prove t/db_dependent/Koha/Patrons.t
must return green

Signed-off-by: Roch D'Amour <roch.damour@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Conflicts:
	C4/Circulation.pm
	t/db_dependent/Koha/Patrons.t

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-03-23 10:16:24 +00:00
..
IssuingRules Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
Branch.t Bug 19268: Fix TestBuilder parameter in C/Branch.t and K/P/Messaging.t 2017-09-07 13:56:08 -03:00
CalcDateDue.t Bug 11580: Add one more test and clear the cache 2017-09-06 12:52:48 -03:00
CalcFine.t Bug 16155: Adjust a few other tests 2016-05-04 13:47:58 +00:00
Chargelostitem.t Bug 19759: Fix failing test in Chargelostitem.t 2017-12-20 11:56:46 +00:00
CheckIfIssuedToPatron.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
CheckValidBarcode.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
GetHardDueDate.t Bug 16344: Fix test in GetHardDueDate.t 2017-05-24 12:29:43 -03:00
GetPendingOnSiteCheckouts.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
GetTopIssues.t Bug 17829: Move GetMember to Koha::Patron 2017-07-10 13:14:19 -03:00
IsItemIssued.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
MarkIssueReturned.t Bug 19513: Re-add AnonymousPatron-related tests 2017-10-25 12:14:40 -03:00
NoIssuesChargeGuarantees.t Bug 19529: Prevent NoIssuesChargeGuarantees.t to fail randomly 2017-10-25 13:16:53 -03:00
OfflineOperation.t
…
Returns.t Bug 10748: Add tests 2017-11-08 11:07:43 -03:00
StoreLastBorrower.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
SwitchOnSiteCheckouts.t Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly 2017-10-12 11:20:41 -03:00
TooMany.t Bug 18357: Handle unlimited on-site checkouts 2017-11-26 13:00:17 -03:00
dateexpiry.t Bug 20145: Do not insert 0000-00-00 in patron tests (and more) 2018-03-23 10:16:24 +00:00
issue.t Bug 14826: Add unit tests for _FixAccountForLostAndReturned and _FixOverduesOnReturn 2017-10-20 17:14:32 -03:00
transfers.t Bug 19530: Added commentary for last test when prove -v 2018-02-22 01:09:02 +00:00