Koha-clms/t/db_dependent/Circulation
Jonathan Druart da33f365de 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>
(cherry picked from commit 9f075a4fdb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2018-03-27 10:43:21 +02:00
..
IssuingRules Bug 18420: Do not use 'S' as patron category code in other tests 2017-04-21 10:49:25 -04:00
Branch.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
CalcDateDue.t
…
CalcFine.t
…
CheckIfIssuedToPatron.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
CheckValidBarcode.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02: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-09-29 12:02:21 +02:00
GetTopIssues.t
…
IsItemIssued.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
MarkIssueReturned.t Bug 19487: Fix MarkIssueReturned.t 2017-11-20 14:06:33 +01:00
NoIssuesChargeGuarantees.t Bug 19307: Mock the AllowFineOverride preference to ensure expected result 2017-10-27 14:16:03 +02:00
OfflineOperation.t
…
Returns.t Bug 19004: Adjust AddReturn for retrieving item type 2017-10-03 11:50:57 +02:00
StoreLastBorrower.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
SwitchOnSiteCheckouts.t Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly 2018-02-02 10:36:11 +01:00
TooMany.t Bug 18292: Remove return 1 statements in tests 2017-09-29 12:02:21 +02:00
dateexpiry.t Bug 20145: Do not insert 0000-00-00 in patron tests (and more) 2018-03-27 10:43:21 +02:00
issue.t Bug 19071: Fix Circulation/issue.t 2017-09-29 11:44:21 +02:00
transfers.t Bug 19530: Added commentary for last test when prove -v 2018-03-08 10:34:36 +01:00