Bug 25855: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 23 Jun 2020 19:18:54 +0000 (16:18 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:30:23 +0000 (17:30 +0200)
commit7e9d01d0fa75017698e6558f19105b7446821267
tree1daf1a4fd33698381ab16232c3cb08ddaaf18598
parent9676f537a448d50770c90d9d5a8b420a1f302444
Bug 25855: Unit tests

This patch adds tests fr a new circulation hook for plugins.
In this case the post_renewal_action hook,

The tests add the hook to the Test plugin, and verify that all the
required parameters are passed for the plugin hook to use them.
It relies on throwing an exception that is to be caught.

Sponsored-by: ByWater Solutions
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Plugins/Circulation_hooks.t [new file with mode: 0755]
t/lib/Koha/Plugin/Test.pm