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.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.php')
-rw-r--r-- | tests/lib/repair.php | 10 |
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'); } } } |