protected function createEmptyConfiguration()
 {
     CumulativeResourceManager::getInstance()->clear();
     $this->configuration = new ContainerBuilder();
     $loader = new OroConfigExtension();
     $config = $this->getEmptyConfig();
     $loader->load(array($config), $this->configuration);
     $this->assertTrue($this->configuration instanceof ContainerBuilder);
 }
 protected function getContainer(array $config = [])
 {
     $container = new ContainerBuilder();
     $loader = new OroConfigExtension();
     $container->addCompilerPass(new Compiler\ConfigPass());
     $container->setParameter('kernel.bundles', []);
     $loader->load($config, $container);
     $container->register('doctrine.orm.entity_manager', $this->getMockClass('Doctrine\\Common\\Persistence\\ObjectManager'));
     $container->register('security.token_storage', $this->getMockClass('Symfony\\Component\\Security\\Core\\TokenStorageInterface'));
     $container->compile();
     return $container;
 }