aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-18 15:43:39 +0100
committerSimon L <szaimen@e.mail.de>2023-04-17 23:46:52 +0200
commit160bd75d0ad59b3692ae2e904be52c9e4e7295f4 (patch)
treef2edd76f77c54c6d356ea14ab5e6b141716da01f /tests
parent85c9e75f33c0c46bc33023d1f4af05f149d480c3 (diff)
downloadnextcloud-server-160bd75d0ad59b3692ae2e904be52c9e4e7295f4.tar.gz
nextcloud-server-160bd75d0ad59b3692ae2e904be52c9e4e7295f4.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.php2
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();