Skip to content

Commit bf9716c

Browse files
fixup! fix(dav): Add occ command to fix missing caldav sync tokens
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 67f66ba commit bf9716c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/dav/lib/Command/FixCalendarSyncCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
7171
return 0;
7272
}
7373

74-
function fixUserCalendars(IUser $user, ?ProgressBar $progress = null): void {
74+
private function fixUserCalendars(IUser $user, ?ProgressBar $progress = null): void {
7575
$calendars = $this->calDavBackend->getCalendarsForUser("principals/users/" . $user->getUID());
7676

7777
foreach ($calendars as $calendar) {

apps/dav/tests/unit/CalDAV/CalDavBackendTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ public function testRestoreChanges(): void {
15881588

15891589
$changesAfter = $this->backend->getChangesForCalendar($calendarId, $changesBefore['syncToken'], 1);
15901590
self::assertEquals([], $changesAfter['added']);
1591-
self::assertEquals([$uri1, $uri3], $changesAfter['modified']);
1591+
self::assertEqualsCanonicalizing([$uri1, $uri3], $changesAfter['modified']);
15921592
self::assertEquals([$uri2], $changesAfter['deleted']);
15931593
}
15941594
}

0 commit comments

Comments
 (0)