diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-08-11 10:24:08 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-08-20 15:51:09 +0300 |
commit | 7f8e43c7a75aa6a48d6b40c8e449b0388fcc7e30 (patch) | |
tree | b1f2f6ed2094e98a620db10c3e0b3abe9a825d31 /apps/dav/tests | |
parent | 165905ade5bcd6cfcc3850fbb501b10245e6843d (diff) |
Add ability to limit sharing to owner
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php | 4 | ||||
-rw-r--r-- | apps/dav/tests/unit/DAV/Sharing/PluginTest.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php index 48d9479c999..a7c2eeeadd6 100644 --- a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php +++ b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php @@ -30,6 +30,7 @@ namespace OCA\DAV\Tests\unit\CardDAV\Sharing; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\DAV\Sharing\IShareable; use OCA\DAV\DAV\Sharing\Plugin; +use OCP\IConfig; use OCP\IRequest; use Sabre\DAV\Server; use Sabre\DAV\SimpleCollection; @@ -55,7 +56,8 @@ class PluginTest extends TestCase { /** @var IRequest $request */ $request = $this->getMockBuilder(IRequest::class)->disableOriginalConstructor()->getMock(); - $this->plugin = new Plugin($authBackend, $request); + $config = $this->createMock(IConfig::class); + $this->plugin = new Plugin($authBackend, $request, $config); $root = new SimpleCollection('root'); $this->server = new \Sabre\DAV\Server($root); diff --git a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php index 22fbf737793..79f28483e32 100644 --- a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php +++ b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php @@ -30,6 +30,7 @@ namespace OCA\DAV\Tests\unit\DAV\Sharing; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\DAV\Sharing\IShareable; use OCA\DAV\DAV\Sharing\Plugin; +use OCP\IConfig; use OCP\IRequest; use Sabre\DAV\Server; use Sabre\DAV\SimpleCollection; @@ -55,7 +56,8 @@ class PluginTest extends TestCase { /** @var IRequest $request */ $request = $this->getMockBuilder(IRequest::class)->disableOriginalConstructor()->getMock(); - $this->plugin = new Plugin($authBackend, $request); + $config = $this->createMock(IConfig::class); + $this->plugin = new Plugin($authBackend, $request, $config); $root = new SimpleCollection('root'); $this->server = new \Sabre\DAV\Server($root); |