diff options
author | Anna Larch <anna@nextcloud.com> | 2024-01-30 18:35:44 +0100 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2024-02-15 18:01:12 +0100 |
commit | dce69154ba335b610d70094f9daaded3b642f8cb (patch) | |
tree | a9ef54384367de8b48c30fb4babd798fc14533be /apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php | |
parent | 1f0cba5f991a3c12d230284b3d96f91fb50312fd (diff) | |
download | nextcloud-server-dce69154ba335b610d70094f9daaded3b642f8cb.tar.gz nextcloud-server-dce69154ba335b610d70094f9daaded3b642f8cb.zip |
enh(sharing): enable unsharing for sharees for DAV shares (addressbooks and calendars)
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php index 6634a602e74..3460c548de4 100644 --- a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php +++ b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php @@ -84,6 +84,7 @@ class PublicCalendarRootTest extends TestCase { $this->logger = $this->createMock(LoggerInterface::class); $dispatcher = $this->createMock(IEventDispatcher::class); $config = $this->createMock(IConfig::class); + $sharingBackend = $this->createMock(\OCA\DAV\CalDAV\Sharing\Backend::class); $this->principal->expects($this->any())->method('getGroupMembership') ->withAnyParameters() @@ -97,11 +98,12 @@ class PublicCalendarRootTest extends TestCase { $db, $this->principal, $this->userManager, - $this->groupManager, $this->random, $this->logger, $dispatcher, - $config + $config, + $sharingBackend, + false, ); $this->l10n = $this->getMockBuilder(IL10N::class) ->disableOriginalConstructor()->getMock(); |