fix tests related to previous usage of deprecated STATUS_MOVED on Calendar

This commit is contained in:
Julien Fastré 2023-08-28 13:07:40 +02:00
parent 398bbd12d5
commit ebe1c11ca6
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -487,6 +487,7 @@ final class CalendarSyncerTest extends TestCase
'lastModifiedDateTime' => 0,
'changeKey' => 'abcd',
]);
$previousVersion = $calendar->getDateTimeVersion();
$notification = json_decode(self::NOTIF_UPDATE, true);
$calendarSyncer->handleCalendarSync(
@ -504,7 +505,7 @@ final class CalendarSyncerTest extends TestCase
$calendar->getEndDate()->format(DateTimeImmutable::ATOM)
);
$this->assertTrue($calendar->preventEnqueueChanges);
$this->assertEquals(Calendar::STATUS_MOVED, $calendar->getStatus());
$this->assertGreaterThan($previousVersion, $calendar->getDateTimeVersion());
}
public function testHandleNotMovedCalendar(): void