public function testGetClickCallbackReturnsEmptyStringIfItemHasAction() { $this->assertEquals('', $this->_model->getClickCallback()); }
/** * Render menu item onclick function * * @param Mage_Backend_Model_Menu_Item $menuItem * @return string */ protected function _renderItemOnclickFunction($menuItem) { return $menuItem->hasClickCallback() ? ' onclick="' . $menuItem->getClickCallback() . '"' : ''; }
public function testGetClickCallbackReturnsEmptyStringIfItemHasAction() { $item = new Mage_Backend_Model_Menu_Item($this->_params); $this->assertEquals('', $item->getClickCallback()); }