public function testGetActionPath() { $this->assertEquals('', $this->_model->getActionPath()); $this->_model->setRoutePath('catalog/product/view/id/50'); $this->assertEquals('catalog/product/view/', $this->_model->getActionPath()); }
/** * Retrieve action path. * Add backend area front name as a prefix to action path * * @return string */ public function getActionPath() { $path = parent::getActionPath(); if ($path) { if ($this->getAreaFrontName()) { $path = $this->getAreaFrontName() . '/' . $path; } } return $path; }