mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 11:11:42 -04:00
fix(tests): Share manager error message from #52076
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
parent
4c67fe8521
commit
67c06622fa
2 changed files with 2 additions and 2 deletions
|
|
@ -632,7 +632,7 @@ class Manager implements IManager {
|
|||
$mounts = $this->mountManager->findIn($path->getPath());
|
||||
foreach ($mounts as $mount) {
|
||||
if ($mount->getStorage()->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
|
||||
throw new \InvalidArgumentException('Path contains files shared with you');
|
||||
throw new \InvalidArgumentException('You cannot share a folder that contains other shares');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2273,7 +2273,7 @@ class ManagerTest extends \Test\TestCase {
|
|||
|
||||
public function testPathCreateChecksContainsSharedMount() {
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Path contains files shared with you');
|
||||
$this->expectExceptionMessage('You cannot share a folder that contains other shares');
|
||||
|
||||
$path = $this->createMock(Folder::class);
|
||||
$path->method('getPath')->willReturn('path');
|
||||
|
|
|
|||
Loading…
Reference in a new issue