| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 25 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | public function testWillInstantiateFromFQCN() : void  | 
            ||
| 14 |     { | 
            ||
| 15 | $name = 'testFactory';  | 
            ||
| 16 | $factory = new AdapterFactory($name);  | 
            ||
| 17 |         $objectManager  = $this->createMock('Doctrine\Persistence\ObjectManager'); | 
            ||
| 18 | $serviceManager = new ServiceManager();  | 
            ||
| 19 | $serviceManager->setService(  | 
            ||
| 20 | 'config',  | 
            ||
| 21 | [  | 
            ||
| 22 | 'doctrine' => [  | 
            ||
| 23 | 'authentication' => [  | 
            ||
| 24 | $name => [  | 
            ||
| 25 | 'objectManager' => $objectManager,  | 
            ||
| 26 | 'identityClass' => 'DoctrineModuleTest\Authentication\Adapter\TestAsset\IdentityObject',  | 
            ||
| 27 | 'identityProperty' => 'username',  | 
            ||
| 28 | 'credentialProperty' => 'password',  | 
            ||
| 29 | ],  | 
            ||
| 30 | ],  | 
            ||
| 31 | ],  | 
            ||
| 32 | ]  | 
            ||
| 33 | );  | 
            ||
| 34 | |||
| 35 | $adapter = $factory->createService($serviceManager);  | 
            ||
| 36 |         $this->assertInstanceOf('DoctrineModule\Authentication\Adapter\ObjectRepository', $adapter); | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |