예제 #1
0
 /**
  * @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));
 }
예제 #2
0
 /**
  * @magentoAppIsolation enabled
  */
 public function testLoadGetArea()
 {
     $this->_model->loadArea('frontend');
     $this->assertSame($this->_model, $this->_model->getArea('frontend')->getApplication());
 }