eZ\Publish\Core\MVC\Symfony\Routing\Tests\UrlAliasRouterTest::testGenerateWithLocation PHP Method

testGenerateWithLocation() public method

    public function testGenerateWithLocation()
    {
        $location = new Location();
        $parameters = array('some' => 'thing');
        $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH;
        $generatedLink = '/foo/bar';
        $this->urlALiasGenerator->expects($this->once())->method('generate')->with($location, $parameters, $referenceType)->will($this->returnValue($generatedLink));
        $this->assertSame($generatedLink, $this->router->generate($location, $parameters, $referenceType));
    }