Skip to content

Commit

Permalink
fixup! fix(caldav): stricter default calendar checks
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Jun 5, 2024
1 parent 059d291 commit a635a94
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,6 @@ public function testPropFindDefaultCalendarUrl(string $principalUri, ?string $ca
$calendar = $this->createMock(Calendar::class);
$calendar->expects($this->once())->method('isDeleted')->willReturn($deleted);
$calendarHomeObject->expects($deleted && !$hasExistingCalendars ? $this->exactly(2) : $this->once())->method('getChild')->with($calendarUri)->willReturn($calendar);

if ($deleted) {
$this->defaultCalendarValidator->expects(self::once())
->method('validateScheduleDefaultCalendar')
->with($calendar)
->willThrowException(new \Sabre\DAV\Exception('Deleted calendar'));
}
}

$calendarBackend = $this->createMock(CalDavBackend::class);
Expand Down

0 comments on commit a635a94

Please sign in to comment.