diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-27 15:16:53 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-13 12:58:49 +0200 |
commit | 553b3b29280dde318c4987dfd42436f72eff0df4 (patch) | |
tree | a84561cbbcbc996a62ae8eb6919c0e14554c8ff0 | |
parent | a1edcc8ecf7b81e19c772fbe8586acc38e1eadad (diff) | |
download | nextcloud-server-553b3b29280dde318c4987dfd42436f72eff0df4.tar.gz nextcloud-server-553b3b29280dde318c4987dfd42436f72eff0df4.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index bbdef2130f5..abfe2ca9c12 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -2757,11 +2757,17 @@ class ManagerTest extends \Test\TestCase { $file->method('getParent') ->willReturn($folder); + $file->method('getPath') + ->willReturn('/owner/files/folder/file'); $folder->method('getParent') ->willReturn($userFolder); + $folder->method('getPath') + ->willReturn('/owner/files/folder'); $userFolder->method('getById') ->with($this->equalTo(42)) ->willReturn([$file]); + $userFolder->method('getPath') + ->willReturn('/owner/files'); $userShare = $this->createMock(IShare::class); $userShare->method('getShareType') |