summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-07 10:03:44 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:31 +0200
commit268d346b369f5afb630decb3e9b4e6cd9a7c124f (patch)
tree7a0a42a1811b1591f33228065bbe9246690eda24 /tests
parent4a70ca665c64253ef4da7b0e8b18f12db9cda442 (diff)
downloadnextcloud-server-268d346b369f5afb630decb3e9b4e6cd9a7c124f.tar.gz
nextcloud-server-268d346b369f5afb630decb3e9b4e6cd9a7c124f.zip
fixing unit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/storage/wrapper/encryption.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lib/files/storage/wrapper/encryption.php b/tests/lib/files/storage/wrapper/encryption.php
index e25002eee2e..bf4464f0eb9 100644
--- a/tests/lib/files/storage/wrapper/encryption.php
+++ b/tests/lib/files/storage/wrapper/encryption.php
@@ -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
);