eZ\Bundle\EzPublishCoreBundle\Tests\DependencyInjection\EzPublishCoreExtensionTest::testRepositoriesConfiguration PHP Method

testRepositoriesConfiguration() public method

    public function testRepositoriesConfiguration()
    {
        $repositories = array('main' => array('storage' => array('engine' => 'legacy', 'connection' => 'default'), 'search' => array('engine' => 'elasticsearch', 'connection' => 'blabla'), 'fields_groups' => array('list' => ['content'], 'default' => 'content')), 'foo' => array('storage' => array('engine' => 'sqlng', 'connection' => 'default'), 'search' => array('engine' => 'solr', 'connection' => 'lalala'), 'fields_groups' => array('list' => ['content'], 'default' => 'content')));
        $this->load(array('repositories' => $repositories));
        $this->assertTrue($this->container->hasParameter('ezpublish.repositories'));
        foreach ($repositories as &$repositoryConfig) {
            $repositoryConfig['storage']['config'] = array();
            $repositoryConfig['search']['config'] = array();
        }
        $this->assertSame($repositories, $this->container->getParameter('ezpublish.repositories'));
    }