summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/PluginTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/PluginTest.php')
-rw-r--r--apps/dav/tests/unit/CalDAV/PluginTest.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/PluginTest.php b/apps/dav/tests/unit/CalDAV/PluginTest.php
index 7d283b6d1ed..47190d583f0 100644
--- a/apps/dav/tests/unit/CalDAV/PluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/PluginTest.php
@@ -43,8 +43,12 @@ class PluginTest extends TestCase {
'calendars/MyUserName',
],
[
- 'FooFoo',
- null,
+ 'principals/calendar-resources/Resource-ABC',
+ 'system-calendars/calendar-resources/Resource-ABC',
+ ],
+ [
+ 'principals/calendar-rooms/Room-ABC',
+ 'system-calendars/calendar-rooms/Room-ABC',
],
];
}
@@ -59,4 +63,11 @@ class PluginTest extends TestCase {
$this->assertSame($expected, $this->plugin->getCalendarHomeForPrincipal($input));
}
+ /**
+ * @expectedException \LogicException
+ * @expectedExceptionMessage This is not supposed to happen
+ */
+ public function testGetCalendarHomeForUnknownPrincipal() {
+ $this->plugin->getCalendarHomeForPrincipal('FOO/BAR/BLUB');
+ }
}