| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function testLoadDispatcher() |
||
| 30 | { |
||
| 31 | $this->container->set( |
||
| 32 | 'event_dispatcher', |
||
| 33 | $this->getMock(EventDispatcherInterface::class) |
||
| 34 | ); |
||
| 35 | |||
| 36 | $this->container->loadFromExtension($this->extension->getAlias()); |
||
| 37 | $this->container->compile(); |
||
| 38 | |||
| 39 | $this->assertTrue( |
||
| 40 | $this->container->has('gbprod.domain_event_dispatcher') |
||
| 41 | ); |
||
| 42 | |||
| 43 | $dispatcher = $this->container->get('gbprod.domain_event_dispatcher'); |
||
| 44 | |||
| 45 | $this->assertInstanceOf(Dispatcher::class, $dispatcher); |
||
| 46 | } |
||
| 47 | |||
| 48 | } |