summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:18:58 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:38 +0200
commitdc60f4c441000b51ea8cba3b1ffca7f458bf52d5 (patch)
tree10049029e203df5684fc863a7a0dbca8ada00e95 /tests
parent1b5ed67857a2281a4adb060175009e72bf8d49b5 (diff)
downloadnextcloud-server-dc60f4c441000b51ea8cba3b1ffca7f458bf52d5.tar.gz
nextcloud-server-dc60f4c441000b51ea8cba3b1ffca7f458bf52d5.zip
Fix getMock Repair
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Repair/RepairSharePropagationTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Repair/RepairSharePropagationTest.php b/tests/lib/Repair/RepairSharePropagationTest.php
index 07db3c84f28..d6010cf5706 100644
--- a/tests/lib/Repair/RepairSharePropagationTest.php
+++ b/tests/lib/Repair/RepairSharePropagationTest.php
@@ -9,6 +9,7 @@
namespace Test\Repair;
use OC\Repair\SharePropagation;
+use OCP\IConfig;
use OCP\Migration\IOutput;
class RepairSharePropagationTest extends \Test\TestCase {
@@ -27,7 +28,7 @@ class RepairSharePropagationTest extends \Test\TestCase {
*/
public function testRemovePropagationEntries(array $startKeys, array $expectedRemovedKeys) {
/** @var \PHPUnit_Framework_MockObject_MockObject|\OCP\IConfig $config */
- $config = $this->getMock('\OCP\IConfig');
+ $config = $this->createMock(IConfig::class);
$config->expects($this->once())
->method('getAppKeys')
->with('files_sharing')