示例#1
0
 public function testHasClickCallbackReturnsTrueIfItemHasNoAction()
 {
     $this->_params['action'] = '';
     $item = new Mage_Backend_Model_Menu_Item($this->_validatorMock, $this->_aclMock, $this->_appConfigMock, $this->_storeConfigMock, $this->_menuFactoryMock, $this->_urlModelMock, $this->_helperMock, $this->_params);
     $this->assertTrue($item->hasClickCallback());
 }
示例#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 testHasClickCallbackReturnsTrueIfItemHasNoAction()
 {
     $this->_params['action'] = '';
     $item = new Mage_Backend_Model_Menu_Item($this->_params);
     $this->assertTrue($item->hasClickCallback());
 }