diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-29 06:51:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 06:51:49 +0200 |
commit | 89b6ee1a45f165346ddcc9120195714087287b47 (patch) | |
tree | a7951e212e099f08cd28b412aaa03b1fe1757523 /apps/dav/tests/unit/CalDAV/PluginTest.php | |
parent | e6780c4fc7fe0bb6ee6d2a8d4bfb2ca09d6e726a (diff) | |
parent | ab43251a45f9b04a1681a0b206d85676232dd7c3 (diff) | |
download | nextcloud-server-89b6ee1a45f165346ddcc9120195714087287b47.tar.gz nextcloud-server-89b6ee1a45f165346ddcc9120195714087287b47.zip |
Merge pull request #9773 from nextcloud/feature/noid/resource_booking
resource booking
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/PluginTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/PluginTest.php | 15 |
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'); + } } |