]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing unit tests
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 08:03:44 +0000 (10:03 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 11:30:31 +0000 (13:30 +0200)
tests/lib/files/storage/wrapper/encryption.php

index e25002eee2e8f77bd3523c250abb629a7438a49b..bf4464f0eb9ad141dbbc242722bb50426145623a 100644 (file)
@@ -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
                );