Lines 2-8
Link Here
|
2 |
|
2 |
|
3 |
use Modern::Perl; |
3 |
use Modern::Perl; |
4 |
|
4 |
|
5 |
use Test::More tests => 10; |
5 |
use Test::More tests => 14; |
6 |
use CGI; |
6 |
use CGI; |
7 |
use File::Basename; |
7 |
use File::Basename; |
8 |
use File::Spec; |
8 |
use File::Spec; |
Lines 40-47
t::lib::Mocks::mock_preference('UseKohaPlugins',1);
Link Here
|
40 |
t::lib::Mocks::mock_config('enable_plugins',1); |
40 |
t::lib::Mocks::mock_config('enable_plugins',1); |
41 |
ok( index( $plugin->get_plugins_opac_js, 'Koha::Plugin::Test::opac_js' ) != -1, 'Test plugin opac_js return value is part of code returned by get_plugins_opac_js' ); |
41 |
ok( index( $plugin->get_plugins_opac_js, 'Koha::Plugin::Test::opac_js' ) != -1, 'Test plugin opac_js return value is part of code returned by get_plugins_opac_js' ); |
42 |
ok( index( $plugin->get_plugins_opac_head, 'Koha::Plugin::Test::opac_head' ) != -1, 'Test plugin opac_head return value is part of code returned by get_plugins_opac_head' ); |
42 |
ok( index( $plugin->get_plugins_opac_head, 'Koha::Plugin::Test::opac_head' ) != -1, 'Test plugin opac_head return value is part of code returned by get_plugins_opac_head' ); |
|
|
43 |
ok( index( $plugin->get_plugins_intranet_js, 'Koha::Plugin::Test::intranet_js' ) != -1, 'Test plugin intranet_js return value is part of code returned by get_plugins_intranet_js' ); |
44 |
ok( index( $plugin->get_plugins_intranet_head, 'Koha::Plugin::Test::intranet_head' ) != -1, 'Test plugin intranet_head return value is part of code returned by get_plugins_intranet_head' ); |
43 |
|
45 |
|
44 |
t::lib::Mocks::mock_preference('UseKohaPlugins',0); |
46 |
t::lib::Mocks::mock_preference('UseKohaPlugins',0); |
45 |
t::lib::Mocks::mock_config('enable_plugins',0); |
47 |
t::lib::Mocks::mock_config('enable_plugins',0); |
46 |
is( $plugin->get_plugins_opac_js, q{}, 'Test plugin opac_js return value is empty' ); |
48 |
is( $plugin->get_plugins_opac_js, q{}, 'Test plugin opac_js return value is empty' ); |
47 |
is( $plugin->get_plugins_opac_head, q{}, 'Test plugin opac_head return value is empty' ); |
49 |
is( $plugin->get_plugins_opac_head, q{}, 'Test plugin opac_head return value is empty' ); |
|
|
50 |
is( $plugin->get_plugins_intranet_js, q{}, 'Test plugin intranet_js return value is empty' ); |
51 |
is( $plugin->get_plugins_intranet_head, q{}, 'Test plugin intranet_head return value is empty' ); |