Skip to content

Commit 2ac680c

Browse files
committed
Remove unneeded test since links have resharing permissions by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 8148c2e commit 2ac680c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/lib/Share20/ManagerTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,24 +1374,6 @@ public function testLinkCreateChecksNoLinkSharesAllowed() {
13741374
}
13751375

13761376

1377-
public function testLinkCreateChecksSharePermissions() {
1378-
$this->expectException(\Exception::class);
1379-
$this->expectExceptionMessage('Link shares can’t have reshare permissions');
1380-
1381-
$share = $this->manager->newShare();
1382-
1383-
$share->setPermissions(\OCP\Constants::PERMISSION_SHARE);
1384-
1385-
$this->config
1386-
->method('getAppValue')
1387-
->willReturnMap([
1388-
['core', 'shareapi_allow_links', 'yes', 'yes'],
1389-
]);
1390-
1391-
self::invokePrivate($this->manager, 'linkCreateChecks', [$share]);
1392-
}
1393-
1394-
13951377
public function testLinkCreateChecksNoPublicUpload() {
13961378
$this->expectException(\Exception::class);
13971379
$this->expectExceptionMessage('Public upload is not allowed');

0 commit comments

Comments
 (0)