[Koha-bugs] [Bug 16502] Table koha_plugin_com_bywatersolutions_kitchensink_mytable not always dropped after running Plugin.t
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 23 04:30:34 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16502
Srdjan Jankovic <srdjan at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |srdjan at catalyst.net.nz
--- Comment #3 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
There's something odd with that t/db_dependent/Plugins.t. Without the patch,
I've changed it:
diff --git a/t/db_dependent/Plugins.t b/t/db_dependent/Plugins.t
index 3271b1a..c5faf87 100755
--- a/t/db_dependent/Plugins.t
+++ b/t/db_dependent/Plugins.t
@@ -43,7 +43,7 @@ ok( $plugin->get_qualified_table_name('mytable') eq
'koha_plugin_test_mytable',
ok( $plugin->get_plugin_http_path() eq '/plugin/Koha/Plugin/Test', 'Test
$plugin->get_plugin_http_path()' );
my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins(
'report' );
-ok( $plugins[0]->get_metadata()->{'name'} eq 'Test Plugin',
"Koha::Plugins::GetPlugins functions correctly" );
+is( $plugins[0]->get_metadata()->{'name'}, 'Test Plugin',
"Koha::Plugins::GetPlugins functions correctly" );
SKIP: {
my $plugins_dir = C4::Context->config("pluginsdir");
and I'm getting
not ok 18 - Koha::Plugins::GetPlugins functions correctly
# Failed test 'Koha::Plugins::GetPlugins functions correctly'
# at t/db_dependent/Plugins.t line 46.
# got: 'Example Kitchen-Sink Plugin'
# expected: 'Test Plugin'
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list