mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Fix getMock Repair
This commit is contained in:
parent
1b5ed67857
commit
dc60f4c441
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue