fix CalendarRangeSyncerTest.php

This commit is contained in:
2025-09-11 12:50:24 +02:00
parent 6ceb1b9544
commit b363bd3425

View File

@@ -241,15 +241,12 @@ final class CalendarRangeSyncerTest extends TestCase
$notification['value'][0], $notification['value'][0],
$user $user
); );
$expected = new \DateTimeImmutable('2022-06-10 15:30:00', new \DateTimeZone('Europe/Brussels'));
$this->assertEquals($expected, $calendarRange->getStartDate());
$expectedEnd = new \DateTimeImmutable('2022-06-10 17:30:00', new \DateTimeZone('Europe/Brussels'));
$this->assertEquals($expectedEnd, $calendarRange->getEndDate());
$this->assertStringContainsString(
'2022-06-10T15:30:00',
$calendarRange->getStartDate()->format(\DateTimeImmutable::ATOM)
);
$this->assertStringContainsString(
'2022-06-10T17:30:00',
$calendarRange->getEndDate()->format(\DateTimeImmutable::ATOM)
);
$this->assertTrue($calendarRange->preventEnqueueChanges); $this->assertTrue($calendarRange->preventEnqueueChanges);
} }
} }