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

testIsAncestor() public method

public testIsAncestor ( )
    public function testIsAncestor()
    {
        $menu = $this->getMock('Knp\\Menu\\ItemInterface');
        $matcherMock = $this->getMatcherMock();
        $matcherMock->expects($this->any())->method('isAncestor')->with($menu)->will($this->returnValue(false));
        $helper = new MenuHelper($this->getHelperMock(), $matcherMock, $this->getManipulatorMock());
        $this->assertFalse($helper->isAncestor($menu));
    }