diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-05-18 09:44:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 09:44:08 +0200 |
commit | 35b910cf8e685fee96b81a1b8f4f14556311e605 (patch) | |
tree | cc21c74c33122ddccd23cfd98da84e67fe8240e1 /tests | |
parent | 6f31d20f3d3b4bbcbfd7f866dada86690d393d10 (diff) | |
parent | 0d5f4edc2255578b912271d997421200f7321078 (diff) | |
download | nextcloud-server-35b910cf8e685fee96b81a1b8f4f14556311e605.tar.gz nextcloud-server-35b910cf8e685fee96b81a1b8f4f14556311e605.zip |
Merge pull request #26322 from nextcloud/recent-search
Use file search for recent files and optimize getting share types
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Node/FolderTest.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index 1d541556c0b..36398171b1b 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -773,6 +773,10 @@ class FolderTest extends NodeTest { $folderInfo->expects($this->any()) ->method('getMountPoint') ->willReturn($mount); + $root->method('getMount') + ->willReturn($mount); + $root->method('getMountsIn') + ->willReturn([]); $cache = $storage->getCache(); @@ -838,6 +842,11 @@ class FolderTest extends NodeTest { ->method('getMountPoint') ->willReturn($mount); + $root->method('getMount') + ->willReturn($mount); + $root->method('getMountsIn') + ->willReturn([]); + $cache = $storage->getCache(); $id1 = $cache->put('bar/foo/folder', [ @@ -903,6 +912,10 @@ class FolderTest extends NodeTest { $folderInfo->expects($this->any()) ->method('getMountPoint') ->willReturn($mount); + $root->method('getMount') + ->willReturn($mount); + $root->method('getMountsIn') + ->willReturn([]); $cache = $storage->getCache(); |