From: Thomas Müller Date: Thu, 9 Apr 2015 15:45:57 +0000 (+0200) Subject: Fix mock object to return proper type X-Git-Tag: v8.1.0alpha1~46^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11c3741526770a8cafe31fbbb7f95ddea8410d2a;p=nextcloud-server.git Fix mock object to return proper type --- diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/files/stream/encryption.php index 84156337ad7..53727a2213d 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')