public function testGetMainConfig() { $expected = array('config' => array('paths' => array('oro/test' => 'orotest/js/test'))); $this->assertEquals($expected, $this->configProvider->getMainConfig()); $expected['config']['paths']['oro/test2'] = 'orotest/js/test2'; $cache = $this->getMock('\\Doctrine\\Common\\Cache\\PhpFileCache', array(), array(), '', false); $cache->expects($this->any())->method('fetch')->will($this->returnValue($expected)); $this->configProvider->setCache($cache); $this->assertEquals($expected, $this->configProvider->getMainConfig()); }