File
- drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/DynamicRouterTest.php, line 58
Class
- DynamicRouterTest
Namespace
Symfony\Cmf\Component\Routing\Tests\Routing
Code
public function testGetGenerator() {
$this->generator
->expects($this
->once())
->method('setContext')
->with($this
->equalTo($this->context));
$generator = $this->router
->getGenerator();
$this
->assertInstanceOf('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface', $generator);
$this
->assertSame($this->generator, $generator);
}