You are here

public function RouterTest::testGeneratorIsCreatedIfCacheIsNotConfigured in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouterTest.php \Symfony\Component\Routing\Tests\RouterTest::testGeneratorIsCreatedIfCacheIsNotConfigured()

@dataProvider provideGeneratorOptionsPreventingCaching

File

vendor/symfony/routing/Tests/RouterTest.php, line 119

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testGeneratorIsCreatedIfCacheIsNotConfigured($option) {
  $this->router
    ->setOption($option, null);
  $this->loader
    ->expects($this
    ->once())
    ->method('load')
    ->with('routing.yml', null)
    ->will($this
    ->returnValue($this
    ->getMock('Symfony\\Component\\Routing\\RouteCollection')));
  $this
    ->assertInstanceOf('Symfony\\Component\\Routing\\Generator\\UrlGenerator', $this->router
    ->getGenerator());
}