From ec382b926ce238f4d19675ae12fd41016cca8584 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 29 Jun 2021 11:18:12 -0300 Subject: [PATCH] Bug 28615: (follow-up) Newer Test::MockModule forbid ->mock In strict mode, ->mock is forbidden and ->redefine needs to be used instead. I tested this on buster to see if it breaks something, but it doesn't. Signed-off-by: Tomas Cohen Arazi --- t/lib/Mocks/Logger.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/Mocks/Logger.pm b/t/lib/Mocks/Logger.pm index 8950d26a97..ff4bdb3ea9 100644 --- a/t/lib/Mocks/Logger.pm +++ b/t/lib/Mocks/Logger.pm @@ -48,7 +48,7 @@ sub new { my $mocked_logger_class = Test::MockModule->new("Koha::Logger"); my $mocked_logger = Test::MockObject->new(); - $mocked_logger_class->mock( + $mocked_logger_class->redefine( 'get', sub { return $mocked_logger; -- 2.32.0