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

testGetBreadcrumbsArray() public method

    public function testGetBreadcrumbsArray()
    {
        $helperMock = $this->getHelperMock(array('getBreadcrumbsArray'));
        $helperMock->expects($this->any())->method('getBreadcrumbsArray')->with('default')->will($this->returnValue(array('A', 'B')));
        $helper = new MenuHelper($helperMock, $this->getMatcherMock(), $this->getManipulatorMock());
        $this->assertEquals(array('A', 'B'), $helper->getBreadcrumbsArray('default'));
    }