diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-16 17:46:17 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-16 17:57:39 +0100 |
commit | a0b649442cadec1f9b1d97bcd6b0c3e1289671d6 (patch) | |
tree | 54d53a8ccf4afa2ab345893b33ec613760655e49 | |
parent | fc296aad5d2db3b95958bff23dead592332655c9 (diff) | |
download | nextcloud-server-a0b649442cadec1f9b1d97bcd6b0c3e1289671d6.tar.gz nextcloud-server-a0b649442cadec1f9b1d97bcd6b0c3e1289671d6.zip |
components was not written to the database
-rw-r--r-- | apps/dav/lib/caldav/caldavbackend.php | 1 | ||||
-rw-r--r-- | apps/dav/tests/unit/caldav/caldavbackendtest.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/caldav/caldavbackend.php b/apps/dav/lib/caldav/caldavbackend.php index 4dcd1bed3de..19bbc6cb93d 100644 --- a/apps/dav/lib/caldav/caldavbackend.php +++ b/apps/dav/lib/caldav/caldavbackend.php @@ -212,6 +212,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription 'uri' => $query->createNamedParameter($values['uri']), 'synctoken' => $query->createNamedParameter($values['synctoken']), 'transparent' => $query->createNamedParameter($values['transparent']), + 'components' => $query->createNamedParameter($values['components']), ]) ->execute(); } diff --git a/apps/dav/tests/unit/caldav/caldavbackendtest.php b/apps/dav/tests/unit/caldav/caldavbackendtest.php index 5e3d4288aa7..fdd76f90213 100644 --- a/apps/dav/tests/unit/caldav/caldavbackendtest.php +++ b/apps/dav/tests/unit/caldav/caldavbackendtest.php @@ -23,6 +23,7 @@ namespace Tests\Connector\Sabre; use DateTime; use DateTimeZone; use OCA\DAV\CalDAV\CalDavBackend; +use Sabre\CalDAV\Property\SupportedCalendarComponentSet; use Sabre\DAV\Property\Href; use Sabre\DAV\PropPatch; use Test\TestCase; @@ -252,6 +253,9 @@ EOD; $calendars = $this->backend->getCalendarsForUser(self::UNIT_TEST_USER); $this->assertEquals(1, count($calendars)); $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('Example', $calendars[0]['uri']); $calendarId = $calendars[0]['id']; |