diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-09 11:36:49 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-21 14:35:29 +0200 |
commit | 397ab1c3c55411053d843ee0618493b41a3471e9 (patch) | |
tree | e98d6ba52968c16f20322238ed4eba6550917bb4 /tests | |
parent | 5646f7c76168b490574fadf9489872efa0dbd808 (diff) | |
download | nextcloud-server-397ab1c3c55411053d843ee0618493b41a3471e9.tar.gz nextcloud-server-397ab1c3c55411053d843ee0618493b41a3471e9.zip |
Remove unneeded test since links have resharing permissions by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 18 |
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'); |