Koha/t/db_dependent/Circulation
Jonathan Druart 744e9a0379 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>
2018-02-18 14:48:05 -03: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 20144: [sql_modes] Set default value for Itemtype fees in TestBuilder 2018-02-13 13:58:58 -03: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
dateexpiry.t Bug 20145: Do not insert 0000-00-00 in patron tests (and more) 2018-02-18 14:48:05 -03:00
GetHardDueDate.t Bug 20144: [sql_modes] Remove 'Null' string values from GetHardDueDate.t 2018-02-13 13:58:58 -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
issue.t Bug 14826: Add unit tests for _FixAccountForLostAndReturned and _FixOverduesOnReturn 2017-10-20 17:14:32 -03:00
MarkIssueReturned.t Bug 19776: (follow-up) remove dup category_type keys 2017-12-14 16:10:15 -03:00
NoIssuesChargeGuarantees.t Bug 19280: Pass a Koha::Patron to CanBookBeIssued 2018-01-09 17:23:15 -03:00
OfflineOperation.t Bug 20144: [sql_modes] Set value for pending_offline_operations.timestamp 2018-02-13 13:58:59 -03:00
Returns.t Bug 19828: Fix tests that expect DBD errors instead of the exception message 2017-12-22 13:15:38 -03:00
StoreLastBorrower.t Bug 18292: Remove return 1 statements in tests 2017-08-15 12:17:42 -03:00
SwitchOnSiteCheckouts.t Bug 19280: Pass a Koha::Patron to CanBookBeIssued 2018-01-09 17:23:15 -03:00
TooMany.t Bug 18357: Handle unlimited on-site checkouts 2017-11-26 13:00:17 -03:00
transfers.t Bug 19530: Added commentary for last test when prove -v 2018-02-13 13:58:48 -03:00