The birthday calendar can only hold VEVENT - refs https://github.com/owncloud/tasks/issues/338

This commit is contained in:
Thomas Müller 2016-07-28 14:19:39 +02:00 committed by Lukas Reschke
parent 09e1218df9
commit 6eb1bc55ab
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1
2 changed files with 12 additions and 0 deletions

View file

@ -116,6 +116,7 @@ class BirthdayService {
$this->calDavBackEnd->createCalendar($principal, self::BIRTHDAY_CALENDAR_URI, [
'{DAV:}displayname' => 'Contact birthdays',
'{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA',
'components' => 'VEVENT',
]);
return $this->calDavBackEnd->getCalendarByUri($principal, self::BIRTHDAY_CALENDAR_URI);

View file

@ -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,