summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-26 13:21:08 +0200
committerGitHub <noreply@github.com>2016-09-26 13:21:08 +0200
commit4f4286932f000d1de6c4728a395a1826772ae24a (patch)
tree035b243fec87eaddf3afa08b08c7953af0963f08 /apps/dav/tests
parentfa44c355d558ac6a96f43c486d59e9b4026e4fa8 (diff)
parent1f825f0fe8877e1b5f119b40e5fd157d44088653 (diff)
downloadnextcloud-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.php11
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,