From f168320d66efcf2c455b5cf1d7a14ab57fe1420e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 25 Mar 2024 08:20:09 +0000 Subject: [PATCH] Bug 35548: (follow-up) Fix mock statement for D10 Content-Type: text/plain; charset=utf-8 Test plan: Run t/db_dependent/Koha/Plugins/KitchenSink.t Signed-off-by: Marcel de Rooy --- t/db_dependent/Koha/Plugins/KitchenSink.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Plugins/KitchenSink.t b/t/db_dependent/Koha/Plugins/KitchenSink.t index d3c2c08891..7393d00ef2 100755 --- a/t/db_dependent/Koha/Plugins/KitchenSink.t +++ b/t/db_dependent/Koha/Plugins/KitchenSink.t @@ -53,7 +53,9 @@ subtest 'Fun with KitchenSink, Handler->delete' => sub { push @INC, $plugins_dir; my $ae = Archive::Extract->new( archive => "$Bin/KitchenSinkPlugin.kpz", type => 'zip' ); $ae->extract( to => $plugins_dir ) or warn "ERROR: " . $ae->error; - my $mock = Test::MockModule->new($module_name)->mock( install => 1 )->mock( uninstall => 1 ); + my $mock = Test::MockModule->new($module_name); + $mock->mock( install => 1 ); + $mock->mock( uninstall => 1 ); warning_is { Koha::Plugins->new->InstallPlugins; } undef, 'No warnings from InstallPlugins'; ok( Koha::Plugins::Datas->count > $count_d, 'More records in plugin_data' ); ok( Koha::Plugins::Methods->count > $count_m, 'More records in plugin_methods' ); -- 2.30.2