|
|
@ -76,7 +76,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
* @var View|\PHPUnit\Framework\MockObject\MockObject $view |
|
|
|
*/ |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $this->view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $this->view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -109,7 +109,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -128,7 +128,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -148,7 +148,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -166,7 +166,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -190,7 +190,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -217,7 +217,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->method('getUser') |
|
|
|
->willReturn($this->user); |
|
|
@ -234,7 +234,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -261,7 +261,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->method('getUser') |
|
|
|
->willReturn($this->user); |
|
|
@ -278,7 +278,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->method('getUser') |
|
|
|
->willReturn($this->user); |
|
|
@ -295,7 +295,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->method('getUser') |
|
|
|
->willReturn($this->user); |
|
|
@ -344,7 +344,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getUser', 'getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -387,7 +387,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->method('getUser') |
|
|
|
->willReturn($this->user); |
|
|
@ -430,7 +430,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
@ -506,7 +506,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$storage = $this->createMock(Storage::class); |
|
|
|
$mount = new MountPoint($storage, '/bar'); |
|
|
@ -555,7 +555,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$storage = $this->createMock(Storage::class); |
|
|
|
$mount = new MountPoint($storage, '/bar'); |
|
|
@ -600,7 +600,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$storage = $this->createMock(Storage::class); |
|
|
|
$mount = new MountPoint($storage, '/bar'); |
|
|
@ -644,7 +644,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$storage = $this->createMock(Storage::class); |
|
|
|
$mount1 = new MountPoint($storage, '/bar'); |
|
|
@ -703,7 +703,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getUser', 'getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
|
|
|
|
$view->expects($this->any()) |
|
|
@ -728,7 +728,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
/** @var \PHPUnit\Framework\MockObject\MockObject|\OC\Files\Node\Root $root */ |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getUser', 'getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
/** @var \PHPUnit\Framework\MockObject\MockObject|FileInfo $folderInfo */ |
|
|
|
$folderInfo = $this->getMockBuilder(FileInfo::class) |
|
|
@ -797,7 +797,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
/** @var \PHPUnit\Framework\MockObject\MockObject|\OC\Files\Node\Root $root */ |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getUser', 'getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
/** @var \PHPUnit\Framework\MockObject\MockObject|FileInfo $folderInfo */ |
|
|
|
$folderInfo = $this->getMockBuilder(FileInfo::class) |
|
|
@ -864,7 +864,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
/** @var \PHPUnit\Framework\MockObject\MockObject|\OC\Files\Node\Root $root */ |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->onlyMethods(['getUser', 'getMountsIn', 'getMount']) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
/** @var \PHPUnit\Framework\MockObject\MockObject|FileInfo $folderInfo */ |
|
|
|
$folderInfo = $this->getMockBuilder(FileInfo::class) |
|
|
@ -951,7 +951,7 @@ class FolderTest extends NodeTestCase { |
|
|
|
$manager = $this->createMock(Manager::class); |
|
|
|
$view = $this->getRootViewMock(); |
|
|
|
$root = $this->getMockBuilder(Root::class) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory]) |
|
|
|
->setConstructorArgs([$manager, $view, $this->user, $this->userMountCache, $this->logger, $this->userManager, $this->eventDispatcher, $this->cacheFactory, $this->appConfig]) |
|
|
|
->getMock(); |
|
|
|
$root->expects($this->any()) |
|
|
|
->method('getUser') |
|
|
|