diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-18 15:43:39 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-05-08 15:21:52 +0000 |
commit | 51549f407bc271f771724fab773ba8986fe4f8c5 (patch) | |
tree | 8f0fa3bf1652fd26c5dea182b3e00b65cd03e60f /tests | |
parent | fc5247892b9d7b07dd1ff8342b6df9fdd1254a12 (diff) | |
download | nextcloud-server-51549f407bc271f771724fab773ba8986fe4f8c5.tar.gz nextcloud-server-51549f407bc271f771724fab773ba8986fe4f8c5.zip |
fix: Use proper path when creating node instances
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Node/FolderTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index 8a604af3846..f8573f0214d 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -81,6 +81,8 @@ class FolderTest extends NodeTest { ]); $view->method('getFileInfo') ->willReturn($this->createMock(FileInfo::class)); + $view->method('getRelativePath') + ->willReturn('/bar/foo'); $node = new Folder($root, $view, '/bar/foo'); $children = $node->getDirectoryListing(); |