|
|
|
|
@ -356,6 +356,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$cache->insert('', ['size' => 0, 'mtime' => 0, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
$cache->insert('files', ['size' => 200, 'mtime' => 55, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
@ -395,6 +397,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$cache->insert('', ['size' => 0, 'mtime' => 0, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
$cache->insert('foo', ['size' => 200, 'mtime' => 55, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
@ -447,9 +451,13 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$subStorage->method('getCache')
|
|
|
|
|
->willReturn($subCache);
|
|
|
|
|
$subStorage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$cache->insert('', ['size' => 0, 'mtime' => 0, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
$cache->insert('foo', ['size' => 200, 'mtime' => 55, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
@ -503,6 +511,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$this->userMountCache->expects($this->any())
|
|
|
|
|
->method('getMountsForFileId')
|
|
|
|
|
@ -550,6 +560,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$this->userMountCache->expects($this->any())
|
|
|
|
|
->method('getMountsForFileId')
|
|
|
|
|
@ -593,6 +605,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$this->userMountCache->expects($this->any())
|
|
|
|
|
->method('getMountsForFileId')
|
|
|
|
|
@ -636,6 +650,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$this->userMountCache->method('getMountsForFileId')
|
|
|
|
|
->with(1)
|
|
|
|
|
@ -651,9 +667,6 @@ class FolderTest extends NodeTest {
|
|
|
|
|
),
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
|
|
|
|
|
$cache->method('get')
|
|
|
|
|
->with(1)
|
|
|
|
|
->willReturn($fileInfo);
|
|
|
|
|
@ -965,9 +978,13 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$storage->method('getCache')
|
|
|
|
|
->willReturn($cache);
|
|
|
|
|
$storage->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$subStorage1->method('getCache')
|
|
|
|
|
->willReturn($subCache1);
|
|
|
|
|
$subStorage1->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
$subMount2->method('getStorage')
|
|
|
|
|
->willReturn($subStorage2);
|
|
|
|
|
@ -977,6 +994,8 @@ class FolderTest extends NodeTest {
|
|
|
|
|
|
|
|
|
|
$subStorage2->method('getCache')
|
|
|
|
|
->willReturn($subCache2);
|
|
|
|
|
$subStorage2->method('getOwner')
|
|
|
|
|
->willReturn('owner');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$cache->insert('', ['size' => 0, 'mtime' => 10, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
|
|
|
|
|
|