From: Thomas Müller Date: Tue, 7 Apr 2015 08:03:44 +0000 (+0200) Subject: fixing unit tests X-Git-Tag: v8.1.0alpha1~78^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=268d346b369f5afb630decb3e9b4e6cd9a7c124f;p=nextcloud-server.git fixing unit tests --- 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 );