Fix mock object to return proper type
This commit is contained in:
parent
11c3741526
commit
06a5a9d0c2
|
@ -44,7 +44,9 @@ class Encryption extends \Test\Files\Storage\Storage {
|
||||||
|
|
||||||
$file = $this->getMockBuilder('\OC\Encryption\File')
|
$file = $this->getMockBuilder('\OC\Encryption\File')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
|
->setMethods(['getAccessList'])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
$file->expects($this->any())->method('getAccessList')->willReturn([]);
|
||||||
|
|
||||||
$logger = $this->getMock('\OC\Log');
|
$logger = $this->getMock('\OC\Log');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue