From 11c3741526770a8cafe31fbbb7f95ddea8410d2a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Thu, 9 Apr 2015 17:45:57 +0200
Subject: [PATCH] Fix mock object to return proper type

---
 tests/lib/files/stream/encryption.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/files/stream/encryption.php
index 84156337ad..53727a2213 100644
--- a/tests/lib/files/stream/encryption.php
+++ b/tests/lib/files/stream/encryption.php
@@ -29,7 +29,9 @@ class Encryption extends \Test\TestCase {
 			->getMock();
 		$file = $this->getMockBuilder('\OC\Encryption\File')
 			->disableOriginalConstructor()
+			->setMethods(['getAccessList'])
 			->getMock();
+		$file->expects($this->any())->method('getAccessList')->willReturn([]);
 		$util = $this->getMock('\OC\Encryption\Util', ['getUidAndFilename'], [new View(), new \OC\User\Manager(), $config]);
 		$util->expects($this->any())
 			->method('getUidAndFilename')
-- 
GitLab