mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Remove unneeded test since links have resharing permissions by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
4a2ded0199
commit
a8229421df
1 changed files with 0 additions and 18 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue