aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-02 10:42:35 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-06 09:29:27 +0200
commit798dd401391bc9d88292b50f9a17f01546f70624 (patch)
tree29100778b2b3cf2fd13850b9a07b275ec0a20c76 /apps/files_versions
parent327352e73a09f6a42335e7da14fb50583167c616 (diff)
downloadnextcloud-server-798dd401391bc9d88292b50f9a17f01546f70624.tar.gz
nextcloud-server-798dd401391bc9d88292b50f9a17f01546f70624.zip
Fix getMock files_versions
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/tests/VersioningTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index 15bcaf9a90c..6e6551089cc 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) {