fixing unit tests
This commit is contained in:
parent
4a70ca665c
commit
268d346b36
1 changed files with 7 additions and 1 deletions
|
@ -51,10 +51,16 @@ class Encryption extends \Test\Files\Storage\Storage {
|
|||
$this->sourceStorage = new Temporary(array());
|
||||
$keyStore = $this->getMockBuilder('\OC\Encryption\Keys\Storage')
|
||||
->disableOriginalConstructor()->getMock();
|
||||
$mount = $this->getMockBuilder('\OC\Files\Mount\MountPoint')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['getOption'])
|
||||
->getMock();
|
||||
$mount->expects($this->any())->method('getOption')->willReturn(true);
|
||||
$this->instance = new EncryptionWrapper([
|
||||
'storage' => $this->sourceStorage,
|
||||
'root' => 'foo',
|
||||
'mountPoint' => '/'
|
||||
'mountPoint' => '/',
|
||||
'mount' => $mount
|
||||
],
|
||||
$encryptionManager, $util, $logger, $file, null, $keyStore
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue