summaryrefslogtreecommitdiffstats
path: root/tests/lib/repair.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/repair.php')
-rw-r--r--tests/lib/repair.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/repair.php b/tests/lib/repair.php
index 248db382140..a598d3c1a29 100644
--- a/tests/lib/repair.php
+++ b/tests/lib/repair.php
@@ -6,9 +6,9 @@
* See the COPYING-README file.
*/
-use OC\Hooks\BasicEmitter;
+use OCP\Migration\IRepairStep;
-class TestRepairStep extends BasicEmitter implements \OC\RepairStep{
+class TestRepairStep implements IRepairStep {
private $warning;
public function __construct($warning = false) {
@@ -19,12 +19,12 @@ class TestRepairStep extends BasicEmitter implements \OC\RepairStep{
return 'Test Name';
}
- public function run() {
+ public function run(\OCP\Migration\IOutput $out) {
if ($this->warning) {
- $this->emit('\OC\Repair', 'warning', array('Simulated warning'));
+ $out->warning('Simulated warning');
}
else {
- $this->emit('\OC\Repair', 'info', array('Simulated info'));
+ $out->info('Simulated info');
}
}
}