Exemple #1
0
 public function testGetConfig()
 {
     $this->assertEquals('frontend', $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_AREA));
     $this->assertEquals('en_US', $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_LOCALE));
     $this->assertEquals(1, $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_STORE));
     $this->assertEquals('test', $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_DESIGN_PACKAGE));
     $this->assertEquals('default', $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_DESIGN_THEME));
     $this->assertNull($this->_model->getConfig('non_existing_key'));
 }
Exemple #2
0
 public function testGetConfig()
 {
     $this->assertEquals('frontend', $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_AREA));
     $this->assertEquals('en_US', $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_LOCALE));
     $this->assertEquals(1, $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_STORE));
     $this->assertEquals(Mage::getDesign()->getDesignTheme()->getId(), $this->_model->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_DESIGN_THEME));
     $this->assertNull($this->_model->getConfig('non_existing_key'));
 }