]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock Repair
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:18:58 +0000 (20:18 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:38 +0000 (20:42 +0200)
tests/lib/Repair/RepairSharePropagationTest.php

index 07db3c84f286917dadc881dd002ef7f85d49a8f5..d6010cf57067d2a88a267f507b779a13a9da8abe 100644 (file)
@@ -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')