Remove unneeded test since links have resharing permissions by default

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-04-09 11:36:49 +02:00
parent 5646f7c761
commit 397ab1c3c5
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 0 additions and 18 deletions

View File

@ -1373,24 +1373,6 @@ class ManagerTest extends \Test\TestCase {
}
public function testLinkCreateChecksSharePermissions() {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Link shares cant 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');