diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-05-01 14:37:24 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-05-08 12:09:15 +0200 |
commit | 255442f2817d2504496ca6f60787933c3f064742 (patch) | |
tree | eb48ff7b7c589a7298850237eb8a0369d1e6c989 /apps/dav/tests/unit/CalDAV/PublicCalendarTest.php | |
parent | 2152d5f1f610a40539f11e91318ab27c54400ef3 (diff) | |
download | nextcloud-server-255442f2817d2504496ca6f60787933c3f064742.tar.gz nextcloud-server-255442f2817d2504496ca6f60787933c3f064742.zip |
fix PROPPATCH requests to read-only shared calendars
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/PublicCalendarTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/PublicCalendarTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php b/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php index 6b2bf58d392..03cbf71d6ca 100644 --- a/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php +++ b/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php @@ -51,6 +51,7 @@ class PublicCalendarTest extends CalendarTest { ]); $backend->expects($this->any())->method('getCalendarObject') ->willReturn($calObject2)->with(666, 'event-2'); + $backend->expects($this->any())->method('applyShareAcl')->willReturnArgument(1); $calendarInfo = [ '{http://owncloud.org/ns}owner-principal' => 'user2', @@ -135,6 +136,7 @@ EOD; ]); $backend->expects($this->any())->method('getCalendarObject') ->willReturn($calObject1)->with(666, 'event-1'); + $backend->expects($this->any())->method('applyShareAcl')->willReturnArgument(1); $calendarInfo = [ '{http://owncloud.org/ns}owner-principal' => 'user1', |