diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-05-28 17:37:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 17:37:28 +0300 |
commit | 876479799eadb1710e7146bf50190ebffa684c6f (patch) | |
tree | a81b289a5ee650021b32188e510222f843cdfc5a /tests | |
parent | 852b0ba19d2e95877b9e85edc6b0845daef82cf9 (diff) | |
parent | 9d422a2d9a7c899933431ca394a6173693877adc (diff) |
Merge pull request #21109 from nextcloud/backport/19793/stable18
[stable18] Fix resharing of federated shares that were created out of links
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'); |