View | Details | Raw Unified | Return to bug 16502
Collapse All | Expand All

(-)a/t/db_dependent/Plugins.t (-2 / +2 lines)
Lines 43-49 ok( $plugin->get_qualified_table_name('mytable') eq 'koha_plugin_test_mytable', Link Here
43
ok( $plugin->get_plugin_http_path() eq '/plugin/Koha/Plugin/Test', 'Test $plugin->get_plugin_http_path()' );
43
ok( $plugin->get_plugin_http_path() eq '/plugin/Koha/Plugin/Test', 'Test $plugin->get_plugin_http_path()' );
44
44
45
my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins( 'report' );
45
my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins( 'report' );
46
ok( $plugins[0]->get_metadata()->{'name'} eq 'Test Plugin', "Koha::Plugins::GetPlugins functions correctly" );
46
my @names = map { $_->get_metadata()->{'name'} } @plugins;
47
is( scalar grep( /^Test Plugin$/, @names), 1, "Koha::Plugins::GetPlugins functions correctly" );
47
48
48
SKIP: {
49
SKIP: {
49
    my $plugins_dir = C4::Context->config("pluginsdir");
50
    my $plugins_dir = C4::Context->config("pluginsdir");
50
- 

Return to bug 16502