From e5229fd68b13e69b47349e9b5c986a6243ee69c6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 11 Apr 2018 18:08:56 -0300 Subject: [PATCH] Bug 20123: (follow-up) Mock timezone in t/Auth_with_shibboleth.t Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- t/Auth_with_shibboleth.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/Auth_with_shibboleth.t b/t/Auth_with_shibboleth.t index 60bde6896c..5022b008eb 100644 --- a/t/Auth_with_shibboleth.t +++ b/t/Auth_with_shibboleth.t @@ -65,6 +65,9 @@ $context->mock( 'config', \&mockedConfig ); my $OPACBaseURL = "testopac.com"; $context->mock( 'preference', \&mockedPref ); +### Mock ->tz +$context->mock( 'timezone', sub { return 'local'; } ); + ## Mock Database my $database = new Test::MockModule('Koha::Database'); -- 2.39.5