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