/** * @magentoAppIsolation enabled * @magentoConfigFixture current_store general/locale/code de_DE */ public function testLoadArea() { $translator = Mage::app()->getTranslator(); $this->assertEmpty($translator->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_LOCALE)); $this->_model->loadArea('frontend'); $this->assertEquals('de_DE', $translator->getConfig(Mage_Core_Model_Translate::CONFIG_KEY_LOCALE)); }
/** * @magentoAppIsolation enabled */ public function testLoadGetArea() { $this->_model->loadArea('frontend'); $this->assertSame($this->_model, $this->_model->getArea('frontend')->getApplication()); }