/** * Testing getLanguageIds() - if returns correct languages abbervations array * when language params array exists */ public function testGetLanguageIds() { $aLanguages = array('de' => 'Deutch', 'en' => 'English', 'ru' => 'Russian'); $this->getConfig()->setConfigParam('aLanguages', $aLanguages); $aLangParams['de']['baseId'] = 0; $aLangParams['de']['abbr'] = 'de'; $aLangParams['ru']['baseId'] = 1; $aLangParams['ru']['abbr'] = 'ru'; $aLangParams['en']['baseId'] = 3; $aLangParams['en']['abbr'] = 'ru'; $this->getConfig()->setConfigParam('aLanguageParams', $aLangParams); $oLang = new oxLang(); $aLangIds = array(0 => 'de', 1 => 'ru', 3 => 'en'); $this->assertEquals($aLangIds, $oLang->getLanguageIds()); }