]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix mock object to return proper type
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 9 Apr 2015 15:45:57 +0000 (17:45 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 9 Apr 2015 15:45:57 +0000 (17:45 +0200)
tests/lib/files/stream/encryption.php

index 84156337ad72f9e81525a99c4ba62781b8636065..53727a2213d2afff9cef392e35a436e2562a2dd8 100644 (file)
@@ -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')