예제 #1
0
 public function testGetUrlWithValidActionReturnsUrl()
 {
     $this->_urlModelMock->expects($this->once())->method('getUrl')->with($this->equalTo('/system/config'))->will($this->returnValue('Url'));
     $this->assertEquals('Url', $this->_model->getUrl());
 }
예제 #2
0
 /**
  * Render menu item anchor
  * @param Mage_Backend_Model_Menu_Item $menuItem
  * @param int $level
  * @return string
  */
 protected function _renderAnchor($menuItem, $level)
 {
     return '<a href="' . $menuItem->getUrl() . '" ' . $this->_renderItemAnchorTitle($menuItem) . $this->_renderItemOnclickFunction($menuItem) . ' class="' . $this->_renderAnchorCssClass($menuItem, $level) . '">' . '<span>' . $this->_getAnchorLabel($menuItem) . '</span>' . '</a>';
 }
예제 #3
0
 public function testGetUrlWithValidActionReturnsUrl()
 {
     $this->_urlModelMock->expects($this->once())->method('getUrl')->with($this->equalTo('/system/config'))->will($this->returnValue('Url'));
     $item = new Mage_Backend_Model_Menu_Item($this->_params);
     $this->assertEquals('Url', $item->getUrl());
 }