Author: Michaƫl Gallego (mic.gallego@gmail.com)
Inheritance: implements Zend\ServiceManager\FactoryInterface
 public function testFactory()
 {
     $serviceManager = new ServiceManager();
     $serviceManager->setService('Config', ['zfc_rbac' => ['role_provider_manager' => []]]);
     $factory = new RoleProviderPluginManagerFactory();
     $pluginManager = $factory->createService($serviceManager);
     $this->assertInstanceOf(RoleProviderPluginManager::class, $pluginManager);
 }
 public function testFactory()
 {
     $serviceManager = new ServiceManager();
     $serviceManager->setService('Config', ['zfc_rbac' => ['role_provider_manager' => []]]);
     $factory = new RoleProviderPluginManagerFactory();
     $pluginManager = $factory->createService($serviceManager);
     $this->assertInstanceOf('ZfcRbac\\Role\\RoleProviderPluginManager', $pluginManager);
     $this->assertSame($serviceManager, $pluginManager->getServiceLocator());
 }