diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-18 15:43:39 +0100 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2023-04-17 23:46:52 +0200 |
commit | 160bd75d0ad59b3692ae2e904be52c9e4e7295f4 (patch) | |
tree | f2edd76f77c54c6d356ea14ab5e6b141716da01f /tests | |
parent | 85c9e75f33c0c46bc33023d1f4af05f149d480c3 (diff) | |
download | nextcloud-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.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(); |