]> git.koha-community.org Git - koha.git/commit
Bug 26470: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 15 Sep 2020 19:21:33 +0000 (16:21 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Sep 2020 08:38:01 +0000 (10:38 +0200)
commit99a640fd75118475f5443093a3b815e3ce148b8f
tree5fbd9f44b0f948544c6dd774605aacf69c2ce49b
parent15174e7bd3f03555ff0120385443157f3da39fe2
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>
t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t
t/lib/Koha/Plugin/Test.pm