Skip to content

Commit

Permalink
fixup! fix(caldav): allow renaming of birthday calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Aug 19, 2024
1 parent c36d304 commit 4d7ccb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/dav/tests/unit/CalDAV/CalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function testDeleteBirthdayCalendar(): void {
'principaluri' => 'principals/users/user1',
'id' => 666,
'uri' => 'contact_birthdays',
'{DAV:}displayname' => 'Test',
];

$c = new Calendar($backend, $calendarInfo, $this->l10n, $this->config, $this->logger);
Expand Down Expand Up @@ -182,6 +183,7 @@ public function testAcl($expectsWrite, $readOnlyValue, $hasOwnerSet, $uri = 'def
'id' => 666,
'uri' => $uri
];
$calendarInfo['{DAV:}displayname'] = 'Test';
if (!is_null($readOnlyValue)) {
$calendarInfo['{http://owncloud.org/ns}read-only'] = $readOnlyValue;
}
Expand Down
6 changes: 4 additions & 2 deletions apps/dav/tests/unit/Command/DeleteCalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public function testDeleteBirthday(): void {
$calendar = [
'id' => $id,
'principaluri' => 'principals/users/' . self::USER,
'uri' => BirthdayService::BIRTHDAY_CALENDAR_URI
'uri' => BirthdayService::BIRTHDAY_CALENDAR_URI,
'{DAV:}displayname' => 'Test',
];

$this->userManager->expects($this->once())
Expand Down Expand Up @@ -216,7 +217,8 @@ public function testBirthdayHasPrecedence(): void {
$calendar = [
'id' => 1234,
'principaluri' => 'principals/users/' . self::USER,
'uri' => BirthdayService::BIRTHDAY_CALENDAR_URI
'uri' => BirthdayService::BIRTHDAY_CALENDAR_URI,
'{DAV:}displayname' => 'Test',
];
$this->userManager->expects($this->once())
->method('userExists')
Expand Down

0 comments on commit 4d7ccb3

Please sign in to comment.