diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-07-28 14:19:39 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-20 11:26:09 +0200 |
commit | 6eb1bc55ab24cf1cfae5995d5fbb976120df32d5 (patch) | |
tree | bc9ed5c0bd48218ee80178605b5635057b0f6f60 /apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php | |
parent | 09e1218df939ffb28160d054bed28af8fc29113e (diff) | |
download | nextcloud-server-6eb1bc55ab24cf1cfae5995d5fbb976120df32d5.tar.gz nextcloud-server-6eb1bc55ab24cf1cfae5995d5fbb976120df32d5.zip |
The birthday calendar can only hold VEVENT - refs https://github.com/owncloud/tasks/issues/338
Diffstat (limited to 'apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php')
-rw-r--r-- | apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php index 33968ec242d..7c772184fef 100644 --- a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php +++ b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php @@ -182,6 +182,17 @@ class BirthdayServiceTest extends TestCase { ], $users); } + public function testBirthdayCalendarHasComponentEvent() { + $this->calDav->expects($this->once()) + ->method('createCalendar') + ->with('principal001', 'contact_birthdays', [ + '{DAV:}displayname' => 'Contact birthdays', + '{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA', + 'components' => 'VEVENT', + ]); + $this->service->ensureCalendarExists('principal001'); + } + public function providesBirthday() { return [ [true, |