Lines 53-59
subtest 'Fun with KitchenSink, Handler->delete' => sub {
Link Here
|
53 |
push @INC, $plugins_dir; |
53 |
push @INC, $plugins_dir; |
54 |
my $ae = Archive::Extract->new( archive => "$Bin/KitchenSinkPlugin.kpz", type => 'zip' ); |
54 |
my $ae = Archive::Extract->new( archive => "$Bin/KitchenSinkPlugin.kpz", type => 'zip' ); |
55 |
$ae->extract( to => $plugins_dir ) or warn "ERROR: " . $ae->error; |
55 |
$ae->extract( to => $plugins_dir ) or warn "ERROR: " . $ae->error; |
56 |
my $mock = Test::MockModule->new($module_name)->mock( install => 1 )->mock( uninstall => 1 ); |
56 |
my $mock = Test::MockModule->new($module_name); |
|
|
57 |
$mock->mock( install => 1 ); |
58 |
$mock->mock( uninstall => 1 ); |
57 |
warning_is { Koha::Plugins->new->InstallPlugins; } undef, 'No warnings from InstallPlugins'; |
59 |
warning_is { Koha::Plugins->new->InstallPlugins; } undef, 'No warnings from InstallPlugins'; |
58 |
ok( Koha::Plugins::Datas->count > $count_d, 'More records in plugin_data' ); |
60 |
ok( Koha::Plugins::Datas->count > $count_d, 'More records in plugin_data' ); |
59 |
ok( Koha::Plugins::Methods->count > $count_m, 'More records in plugin_methods' ); |
61 |
ok( Koha::Plugins::Methods->count > $count_m, 'More records in plugin_methods' ); |
60 |
- |
|
|