summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-02-18 11:02:11 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-02-22 20:26:27 +0000
commit8d5c51730b65e2e91529faf809561774cc41cf11 (patch)
treeeae3c023054f6e85fd04b754d5e4dc31f23278fe /tests
parentc383452b227b6c6b140eb8cab81d10a52cb36987 (diff)
downloadnextcloud-server-8d5c51730b65e2e91529faf809561774cc41cf11.tar.gz
nextcloud-server-8d5c51730b65e2e91529faf809561774cc41cf11.zip
Strip of users home path from share api message
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Share20/ManagerTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index 02f779abf51..314038fe13b 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -708,6 +708,9 @@ class ManagerTest extends \Test\TestCase {
$userFolder = $this->createMock(Folder::class);
$userFolder->method('getPath')->willReturn('myrootfolder');
+ $userFolder->expects($this->any())
+ ->method('getRelativePath')
+ ->willReturnArgument(0);
$this->rootFolder->method('getUserFolder')->willReturn($userFolder);