Fix mock object to return proper type

remotes/origin/poc-doctrine-migrations
Thomas Müller 11 years ago
parent ec69f2838c
commit 11c3741526
  1. 2
      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')

Loading…
Cancel
Save