From 268d346b369f5afb630decb3e9b4e6cd9a7c124f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Tue, 7 Apr 2015 10:03:44 +0200
Subject: [PATCH] fixing unit tests

---
 tests/lib/files/storage/wrapper/encryption.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/lib/files/storage/wrapper/encryption.php b/tests/lib/files/storage/wrapper/encryption.php
index e25002eee2..bf4464f0eb 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
 		);
-- 
GitLab