diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-09 11:36:49 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-05-26 11:28:42 +0200 |
commit | a8229421df8a6e4e5b5aa8295b917ec1ca0d3103 (patch) | |
tree | 99a1334ce428200765873881c0582867abe24dcc /tests | |
parent | 4a2ded019965191bfc1b6c08562bc1a6e5f98251 (diff) | |
download | nextcloud-server-a8229421df8a6e4e5b5aa8295b917ec1ca0d3103.tar.gz nextcloud-server-a8229421df8a6e4e5b5aa8295b917ec1ca0d3103.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 231b879395f..9bc1531ac7f 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -1375,24 +1375,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') - ->will($this->returnValueMap([ - ['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'); |