Bug 20123: (follow-up) Mock timezone in t/Auth_with_shibboleth.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 11 Apr 2018 21:08:56 +0000 (18:08 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Apr 2018 21:15:17 +0000 (18:15 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
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');