diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-05 15:29:49 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-06 14:40:34 +0200 |
commit | 151c80039751bbe74042d7f6f5d58e9f115064e4 (patch) | |
tree | 6345e06bc32e6b8392bc63f10bca1a35f5ee75c6 /tests | |
parent | 9b1abd6fac90b97527c8db9d9119979c7753cb8c (diff) | |
download | nextcloud-server-151c80039751bbe74042d7f6f5d58e9f115064e4.tar.gz nextcloud-server-151c80039751bbe74042d7f6f5d58e9f115064e4.zip |
allow reusing known folder info when getting directory contents
Signed-off-by: Robin Appelman <robin@icewind.nl>
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 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(); |