summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-02-01 14:56:56 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-03-18 08:45:17 +0100
commit9e3775618bde7c0bf57fa7248e9a7dc2dbb47f4d (patch)
tree4749233c246458fd57b0b33c2447265a11263a3f /tests
parent9135a42781f52e9853cd5a8c831cb6cc2fcdd7f5 (diff)
downloadnextcloud-server-9e3775618bde7c0bf57fa7248e9a7dc2dbb47f4d.tar.gz
nextcloud-server-9e3775618bde7c0bf57fa7248e9a7dc2dbb47f4d.zip
log full expection during repair step
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/RepairStepTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/RepairStepTest.php b/tests/lib/RepairStepTest.php
index 9a569f8af6d..b1d16fdd3fd 100644
--- a/tests/lib/RepairStepTest.php
+++ b/tests/lib/RepairStepTest.php
@@ -9,6 +9,7 @@
namespace Test;
use OCP\Migration\IRepairStep;
+use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventDispatcher;
class RepairStepTest implements IRepairStep {
@@ -41,7 +42,7 @@ class RepairTest extends TestCase {
protected function setUp(): void {
parent::setUp();
$dispatcher = new EventDispatcher();
- $this->repair = new \OC\Repair([], $dispatcher);
+ $this->repair = new \OC\Repair([], $dispatcher, $this->createMock(LoggerInterface::class));
$dispatcher->addListener('\OC\Repair::warning', function ($event) {
/** @var \Symfony\Component\EventDispatcher\GenericEvent $event */