From dc60f4c441000b51ea8cba3b1ffca7f458bf52d5 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Sep 2016 20:18:58 +0200 Subject: Fix getMock Repair --- tests/lib/Repair/RepairSharePropagationTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/lib/Repair') 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') -- cgit v1.2.3