/**
  */
 public function testBuildWithOptionsAndRenderer()
 {
     $menuConfig = $this->getMenuConfigYamlArray();
     $this->helper->expects($this->once())->method('render')->with($this->containsOnlyInstancesOf('Knp\\Menu\\MenuItem'), $this->equalTo(['type' => 'some_menu']), $this->equalTo('some_renderer'))->will($this->returnValue('menu'));
     $this->container->setParameter('oro_menu_config', $menuConfig);
     $this->menuExtension->render(['navbar', 'user_user_show'], ['type' => 'some_menu'], 'some_renderer');
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function getContent()
 {
     return $this->menuExtension->render($this->menu);
 }
Ejemplo n.º 3
0
 protected function assertRender($menu, $menuInstance, $options, $renderer)
 {
     $this->helper->expects($this->once())->method('render')->with($menuInstance, $options, $renderer)->will($this->returnValue('MENU'));
     $this->assertEquals('MENU', $this->menuExtension->render($menu, $options, $renderer));
 }