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)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 24 Sep 2016 16:27:10 +0000 (16:27 +0000)
commit71454b4263f6e883f7e6246de06291531a7d5757
tree604e9a1b68a6d803e1959ff537a19fbd550f2fea
parent0254fd7a1ffb54cba942a95e23c24619ec6b25c1
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>
misc/cronjobs/overdue_notices.pl