mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #45786 from nextcloud/fix/caldav/default-vjournal
fix(caldav): allow VJOURNAL if no supported component set is specified
This commit is contained in:
commit
bb706998a9
2 changed files with 2 additions and 2 deletions
|
|
@ -755,7 +755,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
'uri' => $calendarUri,
|
||||
'synctoken' => 1,
|
||||
'transparent' => 0,
|
||||
'components' => 'VEVENT,VTODO',
|
||||
'components' => 'VEVENT,VTODO,VJOURNAL',
|
||||
'displayname' => $calendarUri
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ abstract class AbstractCalDavBackend extends TestCase {
|
|||
$this->assertEquals(self::UNIT_TEST_USER, $calendars[0]['principaluri']);
|
||||
/** @var SupportedCalendarComponentSet $components */
|
||||
$components = $calendars[0]['{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set'];
|
||||
$this->assertEquals(['VEVENT','VTODO'], $components->getValue());
|
||||
$this->assertEquals(['VEVENT','VTODO','VJOURNAL'], $components->getValue());
|
||||
$color = $calendars[0]['{http://apple.com/ns/ical/}calendar-color'];
|
||||
$this->assertEquals('#1C4587FF', $color);
|
||||
$this->assertEquals('Example', $calendars[0]['uri']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue