diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-05 22:43:05 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-05 22:43:05 +0200 |
commit | 63288ebc501739abb4da657eac49d4165f690dd3 (patch) | |
tree | 74203bb3d18dfe3c9ef1ee5fbe812aa35042c370 /apps/dav/tests | |
parent | 00558de782e93d2f5b7d73c0197fdf38261003f9 (diff) | |
download | nextcloud-server-63288ebc501739abb4da657eac49d4165f690dd3.tar.gz nextcloud-server-63288ebc501739abb4da657eac49d4165f690dd3.zip |
Don't list on public calendar endpoints
There is no need to allow listing here.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php index 59fa4747a93..ccef0cf678b 100644 --- a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php +++ b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php @@ -21,7 +21,7 @@ use Test\TestCase; */ class PublicCalendarRootTest extends TestCase { - const UNIT_TEST_USER = 'principals/users/caldav-unit-test'; + const UNIT_TEST_USER = ''; /** @var CalDavBackend */ private $backend; /** @var PublicCalendarRoot */ @@ -92,13 +92,8 @@ class PublicCalendarRootTest extends TestCase { public function testGetChildren() { $this->createPublicCalendar(); - - $publicCalendars = $this->backend->getPublicCalendars(); - $calendarResults = $this->publicCalendarRoot->getChildren(); - - $this->assertEquals(1, count($calendarResults)); - $this->assertEquals(new Calendar($this->backend, $publicCalendars[0], $this->l10n), $calendarResults[0]); + $this->assertSame([], $calendarResults); } /** |