diff options
author | Robin Appelman <robin@icewind.nl> | 2021-04-21 14:01:44 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-04-21 14:09:07 +0200 |
commit | 0d5f4edc2255578b912271d997421200f7321078 (patch) | |
tree | f468cc67ab9d2b6dbcc5d6d93baac846c2783f12 | |
parent | 907e997c9914c925fbf86225a98b2262ee798351 (diff) | |
download | nextcloud-server-0d5f4edc2255578b912271d997421200f7321078.tar.gz nextcloud-server-0d5f4edc2255578b912271d997421200f7321078.zip |
adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/Node/Folder.php | 1 | ||||
-rw-r--r-- | tests/lib/Files/Node/FolderTest.php | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index bead0b19c75..f77c90b65a9 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -35,7 +35,6 @@ use OC\Files\Search\SearchBinaryOperator; use OC\Files\Search\SearchComparison; use OC\Files\Search\SearchOrder; use OC\Files\Search\SearchQuery; -use OC\Files\Storage\Storage; use OCP\Files\Cache\ICacheEntry; use OCP\Files\Config\ICachedMountInfo; use OCP\Files\FileInfo; 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(); |