From 1c115fcff70271246c500d5b5f9290c47b715693 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 23 Jul 2021 15:11:52 -0400 Subject: [PATCH] Bug 28306: Switch back to using 'mock' instead of 'redefine' Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- t/lib/Mocks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/Mocks.pm b/t/lib/Mocks.pm index 1a637f981e..97eb545ebd 100644 --- a/t/lib/Mocks.pm +++ b/t/lib/Mocks.pm @@ -45,7 +45,7 @@ sub mock_config { my $koha_config = Test::MockModule->new('Koha::Config'); my ( $conf, $value ) = @_; $configs{$conf} = $value; - $koha_config->redefine('get', sub { + $koha_config->mock('get', sub { my ( $self, $conf ) = @_; if ( exists $configs{$conf} ) { return $configs{$conf} -- 2.39.5