]> git.koha-community.org Git - koha.git/commit
Bug 23207: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Apr 2021 11:57:19 +0000 (08:57 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 22 Apr 2021 12:37:14 +0000 (14:37 +0200)
commit78f6bb6fa150eb2773fecbbbe5d7d07acb4ea742
treeef52971aed90729e8bd7b4c07defcf3146b14e53
parent4d379cf6981a4ac726df78a9f15918111893c063
Bug 23207: Regression tests

This patch introduces a regression test for the case the automatic
checkin happens after the date due. In that case the item souldn't
really be overdue, and the checkin should be recorded with the date due
as return date.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Checkouts.t
=> FAIL: The feature doesn't behave correctly

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Checkouts.t