Koha-clms/t/lib/Koha/Plugin
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
..
Test Bug 25411: Regression tests 2020-05-22 09:03:51 +01:00
BadAPIRoute.pm Bug 21116: Unit tests 2018-09-14 17:21:13 +00:00
MarcFieldValues.pm
…
Test.pm Bug 26470: Regression tests 2020-09-18 10:38:01 +02:00