public function ProviderBasedGeneratorTest::testGenerateFromRoute

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ProviderBasedGeneratorTest.php, line 64

Class

ProviderBasedGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

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));
}