The birthday calendar can only hold VEVENT - refs https://github.com/owncloud/tasks/issues/338
This commit is contained in:
parent
09e1218df9
commit
6eb1bc55ab
2 changed files with 12 additions and 0 deletions
|
@ -116,6 +116,7 @@ class BirthdayService {
|
||||||
$this->calDavBackEnd->createCalendar($principal, self::BIRTHDAY_CALENDAR_URI, [
|
$this->calDavBackEnd->createCalendar($principal, self::BIRTHDAY_CALENDAR_URI, [
|
||||||
'{DAV:}displayname' => 'Contact birthdays',
|
'{DAV:}displayname' => 'Contact birthdays',
|
||||||
'{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA',
|
'{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA',
|
||||||
|
'components' => 'VEVENT',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->calDavBackEnd->getCalendarByUri($principal, self::BIRTHDAY_CALENDAR_URI);
|
return $this->calDavBackEnd->getCalendarByUri($principal, self::BIRTHDAY_CALENDAR_URI);
|
||||||
|
|
|
@ -182,6 +182,17 @@ class BirthdayServiceTest extends TestCase {
|
||||||
], $users);
|
], $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() {
|
public function providesBirthday() {
|
||||||
return [
|
return [
|
||||||
[true,
|
[true,
|
||||||
|
|
Loading…
Reference in a new issue