diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-04-27 11:05:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 11:05:34 +0200 |
commit | 1738e17e204c813bc3ab970e18a94b415c41af41 (patch) | |
tree | 202f06b32ed14fe2a08ab446be9242ac15382bc3 /tests/lib/Share20 | |
parent | a64681a0fed38eb1652ddf3dd9aeeefb2a021f11 (diff) | |
parent | 7a9469f282471168a48acdcbed84579bd93efa43 (diff) | |
download | nextcloud-server-1738e17e204c813bc3ab970e18a94b415c41af41.tar.gz nextcloud-server-1738e17e204c813bc3ab970e18a94b415c41af41.zip |
Merge pull request #19793 from nextcloud/bugfix/noid/link-to-federated-reshare
Fix resharing of federated shares that were created out of links
Diffstat (limited to 'tests/lib/Share20')
-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 b8364cfdc46..615b5358c9e 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -1374,24 +1374,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'); |