]> git.koha-community.org Git - koha.git/commit
Bug 25855: (QA follow-up) Generalize hook and simplify tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 3 Jul 2020 13:26:06 +0000 (10:26 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:30:23 +0000 (17:30 +0200)
commit2ac260ca6c0716c47d7138aeeeabb80a50599f75
tree9024e45034052e0af8b8aca34399cb20011104cc
parentb78356cafd066cfe37366ca19e2556f69da200be
Bug 25855: (QA follow-up) Generalize hook and simplify tests

This patch generalizes the hook so it can be used by other circulation
actions.

Tests are also simplified by mocking some of the (extensive) plugin
hooks.

To test:
1. Repeat the test plan on the original patch
=> SUCCESS: All good
2. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
t/db_dependent/Koha/Plugins/Circulation_hooks.t
t/lib/Koha/Plugin/Test.pm