diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-09 17:45:57 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-09 17:45:57 +0200 |
commit | 11c3741526770a8cafe31fbbb7f95ddea8410d2a (patch) | |
tree | 24d6f05603e179fe9877699a3c7895ba9b1524a2 /tests | |
parent | ec69f2838c5d06bd827c3ad79e3561b78a0d43a2 (diff) | |
download | nextcloud-server-11c3741526770a8cafe31fbbb7f95ddea8410d2a.tar.gz nextcloud-server-11c3741526770a8cafe31fbbb7f95ddea8410d2a.zip |
Fix mock object to return proper type
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/stream/encryption.php | 2 |
1 files changed, 2 insertions, 0 deletions
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') |