Fix getMock files_versions

This commit is contained in:
Roeland Jago Douma 2016-09-02 10:42:35 +02:00 committed by Morris Jobke
parent 327352e73a
commit 798dd40139
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ namespace OCA\Files_Versions\Tests;
require_once __DIR__ . '/../appinfo/app.php'; require_once __DIR__ . '/../appinfo/app.php';
use OC\Files\Storage\Temporary; use OC\Files\Storage\Temporary;
use OCP\IConfig;
/** /**
* Class Test_Files_versions * Class Test_Files_versions
@ -79,7 +80,7 @@ class VersioningTest extends \Test\TestCase {
parent::setUp(); parent::setUp();
$config = \OC::$server->getConfig(); $config = \OC::$server->getConfig();
$mockConfig = $this->getMock('\OCP\IConfig'); $mockConfig = $this->createMock(IConfig::class);
$mockConfig->expects($this->any()) $mockConfig->expects($this->any())
->method('getSystemValue') ->method('getSystemValue')
->will($this->returnCallback(function ($key, $default) use ($config) { ->will($this->returnCallback(function ($key, $default) use ($config) {