adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
907e997c99
commit
0d5f4edc22
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue