From 6d51560a3c93e7c04322e6a358df537da3ab7b30 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 --- 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.17.0