Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-04-09 12:36:49 +0300
committerJulius Härtl <jus@bitgrid.net>2020-04-21 15:35:29 +0300
commit397ab1c3c55411053d843ee0618493b41a3471e9 (patch)
treee98d6ba52968c16f20322238ed4eba6550917bb4 /tests/lib/Share20
parent5646f7c76168b490574fadf9489872efa0dbd808 (diff)
Remove unneeded test since links have resharing permissions by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/Share20')
-rw-r--r--tests/lib/Share20/ManagerTest.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index 4a7b0e9ae4b..d43777f0379 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -1373,24 +1373,6 @@ class ManagerTest extends \Test\TestCase {
}
- public function testLinkCreateChecksSharePermissions() {
- $this->expectException(\Exception::class);
- $this->expectExceptionMessage('Link shares can’t have reshare permissions');
-
- $share = $this->manager->newShare();
-
- $share->setPermissions(\OCP\Constants::PERMISSION_SHARE);
-
- $this->config
- ->method('getAppValue')
- ->willReturnMap([
- ['core', 'shareapi_allow_links', 'yes', 'yes'],
- ]);
-
- self::invokePrivate($this->manager, 'linkCreateChecks', [$share]);
- }
-
-
public function testLinkCreateChecksNoPublicUpload() {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Public upload is not allowed');