From 15b85a199d9756117ed442f864be5101903fcff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 14 Feb 2023 17:43:48 +0100 Subject: [PATCH] fixup! wip: try to fix webdav propfinds with depth > 1 --- tests/lib/Files/Node/FolderTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index 8a604af384695..d2c8fa98b2f02 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -79,6 +79,10 @@ public function testGetDirectoryContent() { new FileInfo('/bar/foo/asd', null, 'foo/asd', ['fileid' => 2, 'path' => '/bar/foo/asd', 'name' => 'asd', 'size' => 100, 'mtime' => 50, 'mimetype' => 'text/plain'], null), new FileInfo('/bar/foo/qwerty', null, 'foo/qwerty', ['fileid' => 3, 'path' => '/bar/foo/qwerty', 'name' => 'qwerty', 'size' => 200, 'mtime' => 55, 'mimetype' => 'httpd/unix-directory'], null), ]); + $view->method('getRelativePath') + ->willReturnCallback(function ($path) { + return $path; + }); $view->method('getFileInfo') ->willReturn($this->createMock(FileInfo::class));