mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix tests related to previous usage of deprecated STATUS_MOVED on Calendar
This commit is contained in:
parent
398bbd12d5
commit
ebe1c11ca6
@ -487,6 +487,7 @@ final class CalendarSyncerTest extends TestCase
|
|||||||
'lastModifiedDateTime' => 0,
|
'lastModifiedDateTime' => 0,
|
||||||
'changeKey' => 'abcd',
|
'changeKey' => 'abcd',
|
||||||
]);
|
]);
|
||||||
|
$previousVersion = $calendar->getDateTimeVersion();
|
||||||
$notification = json_decode(self::NOTIF_UPDATE, true);
|
$notification = json_decode(self::NOTIF_UPDATE, true);
|
||||||
|
|
||||||
$calendarSyncer->handleCalendarSync(
|
$calendarSyncer->handleCalendarSync(
|
||||||
@ -504,7 +505,7 @@ final class CalendarSyncerTest extends TestCase
|
|||||||
$calendar->getEndDate()->format(DateTimeImmutable::ATOM)
|
$calendar->getEndDate()->format(DateTimeImmutable::ATOM)
|
||||||
);
|
);
|
||||||
$this->assertTrue($calendar->preventEnqueueChanges);
|
$this->assertTrue($calendar->preventEnqueueChanges);
|
||||||
$this->assertEquals(Calendar::STATUS_MOVED, $calendar->getStatus());
|
$this->assertGreaterThan($previousVersion, $calendar->getDateTimeVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testHandleNotMovedCalendar(): void
|
public function testHandleNotMovedCalendar(): void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user