Bug 20123: (follow-up) Mock timezone in t/Auth_with_shibboleth.t
[koha.git] / t / Auth_with_shibboleth.t
index 60bde68..5022b00 100644 (file)
@@ -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');