From 25f74c2b43a55298455c8d4cb8141f624fb708b1 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 23 May 2016 09:03:23 +0200 Subject: [PATCH] Bug 16502: Replace a few other ok-calls by is-calls Content-Type: text/plain; charset=utf-8 Trivial changes that speak for themselves.. Signed-off-by: Marcel de Rooy --- t/db_dependent/Plugins.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Plugins.t b/t/db_dependent/Plugins.t index 73ce65b..403d7c4 100755 --- a/t/db_dependent/Plugins.t +++ b/t/db_dependent/Plugins.t @@ -34,13 +34,13 @@ ok( $plugin->can('configure'), 'Test plugin can configure' ); ok( $plugin->can('install'), 'Test plugin can install' ); ok( $plugin->can('uninstall'), 'Test plugin can install' ); -ok( Koha::Plugins::Handler->run({ class => "Koha::Plugin::Test", method => 'report', enable_plugins => 1 }) eq "Koha::Plugin::Test::report", 'Test run plugin report method' ); +is( Koha::Plugins::Handler->run({ class => "Koha::Plugin::Test", method => 'report', enable_plugins => 1 }), "Koha::Plugin::Test::report", 'Test run plugin report method' ); my $metadata = $plugin->get_metadata(); -ok( $metadata->{'name'} eq 'Test Plugin', 'Test $plugin->get_metadata()' ); +is( $metadata->{'name'}, 'Test Plugin', 'Test $plugin->get_metadata()' ); -ok( $plugin->get_qualified_table_name('mytable') eq 'koha_plugin_test_mytable', 'Test $plugin->get_qualified_table_name()' ); -ok( $plugin->get_plugin_http_path() eq '/plugin/Koha/Plugin/Test', 'Test $plugin->get_plugin_http_path()' ); +is( $plugin->get_qualified_table_name('mytable'), 'koha_plugin_test_mytable', 'Test $plugin->get_qualified_table_name()' ); +is( $plugin->get_plugin_http_path(), '/plugin/Koha/Plugin/Test', 'Test $plugin->get_plugin_http_path()' ); my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins( 'report' ); my @names = map { $_->get_metadata()->{'name'} } @plugins; -- 1.7.10.4