From 798dd401391bc9d88292b50f9a17f01546f70624 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 2 Sep 2016 10:42:35 +0200 Subject: [PATCH] Fix getMock files_versions --- apps/files_versions/tests/VersioningTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php index 15bcaf9a90..6e6551089c 100644 --- a/apps/files_versions/tests/VersioningTest.php +++ b/apps/files_versions/tests/VersioningTest.php @@ -36,6 +36,7 @@ namespace OCA\Files_Versions\Tests; require_once __DIR__ . '/../appinfo/app.php'; use OC\Files\Storage\Temporary; +use OCP\IConfig; /** * Class Test_Files_versions @@ -79,7 +80,7 @@ class VersioningTest extends \Test\TestCase { parent::setUp(); $config = \OC::$server->getConfig(); - $mockConfig = $this->getMock('\OCP\IConfig'); + $mockConfig = $this->createMock(IConfig::class); $mockConfig->expects($this->any()) ->method('getSystemValue') ->will($this->returnCallback(function ($key, $default) use ($config) {