From 43966c4d5aef5dc0c7958d273aa3076d3170d028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 9 Nov 2023 15:50:09 +0100 Subject: [PATCH] remove the change of timezone in test's setUp --- .../Connector/MSGraph/CalendarSyncerTest.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Bundle/ChillCalendarBundle/Tests/RemoteCalendar/Connector/MSGraph/CalendarSyncerTest.php b/src/Bundle/ChillCalendarBundle/Tests/RemoteCalendar/Connector/MSGraph/CalendarSyncerTest.php index 8f6cb9335..e6196aead 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/RemoteCalendar/Connector/MSGraph/CalendarSyncerTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/RemoteCalendar/Connector/MSGraph/CalendarSyncerTest.php @@ -356,20 +356,6 @@ final class CalendarSyncerTest extends TestCase } JSON; - protected function setUp(): void - { - parent::setUp(); - - // all tests should run when timezone = +02:00 - $brussels = new \DateTimeZone('Europe/Brussels'); - - if (7200 === $brussels->getOffset(new \DateTimeImmutable())) { - date_default_timezone_set('Europe/Brussels'); - } else { - date_default_timezone_set('Europe/Moscow'); - } - } - public function testHandleAttendeesConfirmingCalendar(): void { $machineHttpClient = new MockHttpClient([