| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function testDispatchEvent() |
||
| 40 | { |
||
| 41 | $filters = $this->entityManager->getFilters(); |
||
| 42 | $this->assertCount(0, $filters->getEnabledFilters()); |
||
| 43 | |||
| 44 | $applicationMock = $this->prophesize(Application::class); |
||
| 45 | $applicationStartupEvent = new ApplicationStartupEvent($applicationMock->reveal()); |
||
| 46 | $this->eventDispatcher->dispatch(ApplicationStartupEvent::NAME, $applicationStartupEvent); |
||
| 47 | |||
| 48 | $this->assertCount(2, $filters->getEnabledFilters()); |
||
| 49 | } |
||
| 50 | |||
| 52 |