Fix mock object to return proper type

This commit is contained in:
Thomas Müller 2015-04-09 18:30:45 +02:00
parent 11c3741526
commit 06a5a9d0c2
1 changed files with 2 additions and 0 deletions

View File

@ -44,7 +44,9 @@ class Encryption extends \Test\Files\Storage\Storage {
$file = $this->getMockBuilder('\OC\Encryption\File')
->disableOriginalConstructor()
->setMethods(['getAccessList'])
->getMock();
$file->expects($this->any())->method('getAccessList')->willReturn([]);
$logger = $this->getMock('\OC\Log');