Author: Alejandro Celaya Alastrué
Inheritance: implements Zend\ServiceManager\Factory\FactoryInterface
 public function testCreateService()
 {
     /** @var \PHPUnit_Framework_MockObject_MockObject|ControllerManager $cm */
     $cm = $this->getMockBuilder('Zend\\Mvc\\Controller\\ControllerManager')->disableOriginalConstructor()->getMock();
     $cm->expects($this->any())->method('getServiceLocator')->willReturn(new ServiceManagerMock(['config' => ['mail_options' => []], 'AcMailer\\Service\\ConfigMigrationService' => new ConfigMigrationService()]));
     $this->assertInstanceOf('AcMailer\\Controller\\ConfigMigrationController', $this->factory->createService($cm));
 }
 public function testCreateService()
 {
     $this->assertInstanceOf(ConfigMigrationController::class, $this->factory->__invoke(new ServiceManagerMock(['config' => ['mail_options' => []], ConfigMigrationService::class => new ConfigMigrationService()]), ''));
 }