| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | public function testCreateService() |
||
| 20 | { |
||
| 21 | $locator = $this->prophesize(ComposerPluginManager::class); |
||
| 22 | $locator->get('Configuration')->willReturn( |
||
| 23 | [ |
||
| 24 | 'mt_mail' => [ |
||
| 25 | 'layout' => 'mail/layout.phtml', |
||
| 26 | ], |
||
| 27 | ] |
||
| 28 | ); |
||
| 29 | $serviceManager = $this->prophesize(ServiceManager::class); |
||
| 30 | $locator->getServiceLocator()->willReturn($serviceManager->reveal()); |
||
| 31 | |||
| 32 | $factory = new LayoutPluginFactory(); |
||
| 33 | $service = $factory($locator->reveal()); |
||
| 34 | $this->assertInstanceOf(Layout::class, $service); |
||
| 35 | $this->assertEquals('mail/layout.phtml', $service->getLayoutTemplate()); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |