public function ProviderBasedGeneratorTest::testGenerateFromRoute in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ProviderBasedGeneratorTest::testGenerateFromRoute()
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ProviderBasedGeneratorTest.php, line 74
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testGenerateFromRoute() {
$this->provider
->expects($this
->never())
->method('getRouteByName');
$this->routeDocument
->expects($this
->once())
->method('compile')
->will($this
->returnValue($this->routeCompiled));
$this
->assertEquals('result_url', $this->generator
->generate($this->routeDocument));
}