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