diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 13:21:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-26 13:21:08 +0200 |
commit | 4f4286932f000d1de6c4728a395a1826772ae24a (patch) | |
tree | 035b243fec87eaddf3afa08b08c7953af0963f08 /apps/dav/tests | |
parent | fa44c355d558ac6a96f43c486d59e9b4026e4fa8 (diff) | |
parent | 1f825f0fe8877e1b5f119b40e5fd157d44088653 (diff) | |
download | nextcloud-server-4f4286932f000d1de6c4728a395a1826772ae24a.tar.gz nextcloud-server-4f4286932f000d1de6c4728a395a1826772ae24a.zip |
Merge pull request #1457 from nextcloud/upstream-fix-birthday-calendar-component
[Upstream] fix birthday calendar component
Diffstat (limited to 'apps/dav/tests')
-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, |