コード例 #1
0
ファイル: Url.php プロジェクト: nemphys/magento2
 /**
  * Return backend area front name, defined in configuration
  *
  * @return string
  */
 public function getAreaFrontName()
 {
     if (!$this->_getData('area_front_name')) {
         $this->setData('area_front_name', $this->_backendHelper->getAreaFrontName());
     }
     return $this->_getData('area_front_name');
 }
コード例 #2
0
ファイル: DataTest.php プロジェクト: nemphys/magento2
 public function testGetAreaFrontNameReturnsValueFromCache()
 {
     $this->_configMock->expects($this->exactly(2))->method('getNode');
     $this->_helper->getAreaFrontName();
     $this->_helper->getAreaFrontName();
 }