add user preference: default report (#2430)

This commit is contained in:
Kevin Papst
2021-03-14 13:32:47 +01:00
committed by GitHub
parent 0a6ea6be42
commit c0378b4f51
16 changed files with 264 additions and 57 deletions

View File

@@ -24,7 +24,7 @@ class ReportingServiceTest extends TestCase
protected function getSut(bool $isGranted = false): ReportingService
{
$dispatcher = $this->createMock(EventDispatcherInterface::class);
$dispatcher->expects($this->once())->method('dispatch')->willReturnCallback(function ($event) {
$dispatcher->expects($this->exactly($isGranted ? 1 : 0))->method('dispatch')->willReturnCallback(function ($event) {
$this->assertInstanceOf(ReportingEvent::class, $event);
});