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