From 151c80039751bbe74042d7f6f5d58e9f115064e4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 5 Apr 2022 15:29:49 +0200 Subject: allow reusing known folder info when getting directory contents Signed-off-by: Robin Appelman --- tests/lib/Files/Node/FolderTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index 05f546874ef..4cda92b6e83 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -78,6 +78,8 @@ class FolderTest extends NodeTest { 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('getFileInfo') + ->willReturn($this->createMock(FileInfo::class)); $node = new Folder($root, $view, '/bar/foo'); $children = $node->getDirectoryListing(); -- cgit v1.2.3