Bug 2389: Add --test switch to overdue_notices.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 15 Jul 2016 13:18:13 +0000 (10:18 -0300)
committerFrédéric Demians <f.demians@tamil.fr>
Fri, 30 Sep 2016 07:58:10 +0000 (09:58 +0200)
commit3f193fb63a3b8561088ee38a90ae32b9a1b276a5
treea158ff524b42e7fcf7fb229eb36717e7500de649
parentec82b4000e07ccf73eb174bd637707ae73ef3ef2
Bug 2389: Add --test switch to overdue_notices.pl

This patch adds the --test option switch to the overdue_notices.pl script
so it can be ran without doing any actual action.

To test:
- Have a patron with overdue items (simulate a checkout for a past date. Note it implies
  that the circ rules are defined so the patron is overdue)
- Run:
  $ sudo koha-shell kohadev
  koha-dev$ misc/cronjobs/overdue_notices.pl --test
=> SUCCESS: The script is ran but the patron isn't debarred and no notice messages are queued.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Barton Chittenden <barton@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 71454b4263f6e883f7e6246de06291531a7d5757)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
misc/cronjobs/overdue_notices.pl