diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-22 15:35:39 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-25 15:01:13 +0200 |
commit | c7542c02dbc997d818e984dae23bdf1780843559 (patch) | |
tree | eaa5e6b7230b531a4e5f494544be41449a0100f5 /tests/lib/repair/repairsharepropagation.php | |
parent | a4b1d9feee79218268abcb0c20ed16bec82c993c (diff) | |
download | nextcloud-server-c7542c02dbc997d818e984dae23bdf1780843559.tar.gz nextcloud-server-c7542c02dbc997d818e984dae23bdf1780843559.zip |
Introduce OCP\Migration\IRepairStep and adopt all repair steps to this new interface - refs #24198
Diffstat (limited to 'tests/lib/repair/repairsharepropagation.php')
-rw-r--r-- | tests/lib/repair/repairsharepropagation.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lib/repair/repairsharepropagation.php b/tests/lib/repair/repairsharepropagation.php index 6ec8b98ec56..34b47397a53 100644 --- a/tests/lib/repair/repairsharepropagation.php +++ b/tests/lib/repair/repairsharepropagation.php @@ -9,6 +9,7 @@ namespace Test\Repair; use OC\Repair\SharePropagation; +use OCP\Migration\IOutput; class RepairSharePropagation extends \Test\TestCase { public function keyProvider() { @@ -40,8 +41,13 @@ class RepairSharePropagation extends \Test\TestCase { $removedKeys[] = $key; })); + /** @var IOutput | \PHPUnit_Framework_MockObject_MockObject $outputMock */ + $outputMock = $this->getMockBuilder('\OCP\Migration\IOutput') + ->disableOriginalConstructor() + ->getMock(); + $step = new SharePropagation($config); - $step->run(); + $step->run($outputMock); sort($expectedRemovedKeys); sort($removedKeys); |