Skip to content

Commit 67c0662

Browse files
committed
fix(tests): Share manager error message from #52076
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
1 parent 4c67fe8 commit 67c0662

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/private/Share20/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ protected function pathCreateChecks($path) {
632632
$mounts = $this->mountManager->findIn($path->getPath());
633633
foreach ($mounts as $mount) {
634634
if ($mount->getStorage()->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
635-
throw new \InvalidArgumentException('Path contains files shared with you');
635+
throw new \InvalidArgumentException('You cannot share a folder that contains other shares');
636636
}
637637
}
638638
}

tests/lib/Share20/ManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,7 @@ public function testLinkCreateChecksReadOnly() {
22732273

22742274
public function testPathCreateChecksContainsSharedMount() {
22752275
$this->expectException(\InvalidArgumentException::class);
2276-
$this->expectExceptionMessage('Path contains files shared with you');
2276+
$this->expectExceptionMessage('You cannot share a folder that contains other shares');
22772277

22782278
$path = $this->createMock(Folder::class);
22792279
$path->method('getPath')->willReturn('path');

0 commit comments

Comments
 (0)