mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 04:19:43 +00:00
fix CalendarRangeSyncerTest.php
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user