adjust tests

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-04-21 14:01:44 +02:00
parent 907e997c99
commit 0d5f4edc22
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
2 changed files with 13 additions and 1 deletions

View File

@ -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;

View File

@ -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();