Koha-clms/t/db_dependent/Koha/Plugins
Tomas Cohen Arazi 99a640fd75 Bug 26470: Regression tests
This patch tweaks the test plugin so it composes an exception based on
the fact that the hook was called with the item and item_id parameters
defined.

It then makes the tests expect a specific exception message with
information about this.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t
=> FAIL: Tests fail!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-18 10:38:01 +02:00
..
Biblio_and_Items_plugin_hooks.t Bug 26470: Regression tests 2020-09-18 10:38:01 +02:00
Circulation_hooks.t Bug 26108: Regression tests 2020-07-31 15:04:44 +02:00
Holds_hooks.t Bug 24031: (QA follow-up) Add tests for the AddReserve intervention 2020-07-30 17:30:23 +02:00
KitchenSinkPlugin.kpz Bug 22709: (RM follow-up) Clean up plugin tests 2019-07-15 11:23:10 +01:00
Patron.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Plugins.t Bug 26138: Make Koha::Plugins->call return consistent value 2020-08-05 17:36:28 +02:00
z_reset.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00