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 /apps/dav/tests | |
parent | fc296aad5d2db3b95958bff23dead592332655c9 (diff) | |
download | nextcloud-server-a0b649442cadec1f9b1d97bcd6b0c3e1289671d6.tar.gz nextcloud-server-a0b649442cadec1f9b1d97bcd6b0c3e1289671d6.zip |
components was not written to the database
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/caldav/caldavbackendtest.php | 4 |
1 files changed, 4 insertions, 0 deletions
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']; |