Knp\Bundle\MenuBundle\Tests\Templating\MenuHelperTest::testGetMenuWithOptions PHP Method

testGetMenuWithOptions() public method

    public function testGetMenuWithOptions()
    {
        $menu = $this->getMock('Knp\\Menu\\ItemInterface');
        $helperMock = $this->getHelperMock();
        $helperMock->expects($this->any())->method('get')->with('default', array(), array('foo' => 'bar'))->will($this->returnValue($menu));
        $helper = new MenuHelper($helperMock, $this->getMatcherMock(), $this->getManipulatorMock());
        $this->assertSame($menu, $helper->get('default', array(), array('foo' => 'bar')));
    }