Bug 22709: (RM follow-up) Enable plugin in tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 9 Jul 2019 10:21:29 +0000 (11:21 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 9 Jul 2019 10:22:39 +0000 (11:22 +0100)
Now that we clean up properly in t/db_dependent/Plugins.t when we reload
the Koha::Plugin::Test plugin we must also enable it for the tests to
function.

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

t/db_dependent/Plugins/Biblio_and_Items_plugin_hooks.t

index 633ef04..a841e2c 100755 (executable)
@@ -51,7 +51,7 @@ subtest 'after_biblio_action() and after_item_action() hooks tests' => sub {
     my $plugins = Koha::Plugins->new;
     $plugins->InstallPlugins;
 
-    my $plugin = Koha::Plugin::Test->new;
+    my $plugin = Koha::Plugin::Test->new->enable;
 
     my $biblio_id;