Fix mock object to return proper type
This commit is contained in:
parent
ec69f2838c
commit
11c3741526
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue