Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testFactoryProcessesWithoutErrors() |
||
16 | { |
||
17 | |||
18 | $serviceLocator = $this->getMock('Zend\ServiceManager\ServiceLocatorInterface'); |
||
19 | $serviceLocator |
||
20 | ->expects($this->any()) |
||
21 | ->method('get') |
||
22 | ->with('BookingOptions') |
||
23 | ->will($this->returnValue($this->getMock('JhFlexiTime\Options\BookingOptions'))); |
||
24 | |||
25 | $controllerPluginManager = new PluginManager(); |
||
26 | $controllerPluginManager->setServiceLocator($serviceLocator); |
||
27 | |||
28 | $factory = new SettingsControllerFactory(); |
||
29 | $this->assertInstanceOf( |
||
30 | 'JhFlexiTime\Controller\SettingsController', |
||
31 | $factory->createService($controllerPluginManager) |
||
32 | ); |
||
33 | } |
||
34 | } |
||
35 |