summaryrefslogtreecommitdiffstats
path: root/tests/lib/Migration/BackgroundRepairTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Migration/BackgroundRepairTest.php')
-rw-r--r--tests/lib/Migration/BackgroundRepairTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/Migration/BackgroundRepairTest.php b/tests/lib/Migration/BackgroundRepairTest.php
index 180ce72d315..df81fd45772 100644
--- a/tests/lib/Migration/BackgroundRepairTest.php
+++ b/tests/lib/Migration/BackgroundRepairTest.php
@@ -77,12 +77,11 @@ class BackgroundRepairTest extends TestCase {
$this->logger = $this->getMockBuilder(ILogger::class)
->disableOriginalConstructor()
->getMock();
+ $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
$this->job = $this->getMockBuilder(BackgroundRepair::class)
+ ->setConstructorArgs([$this->dispatcher])
->setMethods(['loadApp'])
->getMock();
-
- $this->dispatcher = $this->createMock(EventDispatcherInterface::class);
- $this->job->setDispatcher($this->dispatcher);
}
public function testNoArguments() {