Ejemplo n.º 1
0
 /**
  * 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');
 }
Ejemplo n.º 2
0
 public function testGetAreaFrontNameReturnsValueFromCache()
 {
     $this->_configMock->expects($this->exactly(2))->method('getNode');
     $this->_helper->getAreaFrontName();
     $this->_helper->getAreaFrontName();
 }