コード例 #1
0
ファイル: AppTest.php プロジェクト: nemphys/magento2
 /**
  * @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
ファイル: App.php プロジェクト: NatashaOlut/Mage_Test
 /**
  * @magentoAppIsolation enabled
  */
 public function testLoadGetArea()
 {
     $this->_model->loadArea('frontend');
     $this->assertSame($this->_model, $this->_model->getArea('frontend')->getApplication());
 }