|
|
|
@ -18,6 +18,7 @@ use OCP\Files\Cache\ICache;
|
|
|
|
|
use OCP\Files\Mount\IMountPoint;
|
|
|
|
|
use OCP\IConfig;
|
|
|
|
|
use OCP\ILogger;
|
|
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|
|
|
|
use Test\Files\Storage\Storage;
|
|
|
|
|
|
|
|
|
|
class EncryptionTest extends Storage {
|
|
|
|
@ -130,7 +131,7 @@ class EncryptionTest extends Storage {
|
|
|
|
|
|
|
|
|
|
$this->util = $this->getMockBuilder('\OC\Encryption\Util')
|
|
|
|
|
->setMethods(['getUidAndFilename', 'isFile', 'isExcluded'])
|
|
|
|
|
->setConstructorArgs([new View(), new Manager($this->config), $this->groupManager, $this->config, $this->arrayCache])
|
|
|
|
|
->setConstructorArgs([new View(), new Manager($this->config, $this->createMock(EventDispatcherInterface::class)), $this->groupManager, $this->config, $this->arrayCache])
|
|
|
|
|
->getMock();
|
|
|
|
|
$this->util->expects($this->any())
|
|
|
|
|
->method('getUidAndFilename')
|
|
|
|
@ -558,7 +559,7 @@ class EncryptionTest extends Storage {
|
|
|
|
|
->setConstructorArgs(
|
|
|
|
|
[
|
|
|
|
|
new View(),
|
|
|
|
|
new Manager($this->config),
|
|
|
|
|
new Manager($this->config, $this->createMock(EventDispatcherInterface::class)),
|
|
|
|
|
$this->groupManager,
|
|
|
|
|
$this->config,
|
|
|
|
|
$this->arrayCache
|
|
|
|
@ -627,7 +628,7 @@ class EncryptionTest extends Storage {
|
|
|
|
|
->willReturn($exists);
|
|
|
|
|
|
|
|
|
|
$util = $this->getMockBuilder('\OC\Encryption\Util')
|
|
|
|
|
->setConstructorArgs([new View(), new Manager($this->config), $this->groupManager, $this->config, $this->arrayCache])
|
|
|
|
|
->setConstructorArgs([new View(), new Manager($this->config, $this->createMock(EventDispatcherInterface::class)), $this->groupManager, $this->config, $this->arrayCache])
|
|
|
|
|
->getMock();
|
|
|
|
|
|
|
|
|
|
$cache = $this->getMockBuilder('\OC\Files\Cache\Cache')
|
|
|
|
|