You are here

public function RouterTest::testThatRouteCollectionIsLoaded 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::testThatRouteCollectionIsLoaded()

File

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

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testThatRouteCollectionIsLoaded() {
  $this->router
    ->setOption('resource_type', 'ResourceType');
  $routeCollection = $this
    ->getMock('Symfony\\Component\\Routing\\RouteCollection');
  $this->loader
    ->expects($this
    ->once())
    ->method('load')
    ->with('routing.yml', 'ResourceType')
    ->will($this
    ->returnValue($routeCollection));
  $this
    ->assertSame($routeCollection, $this->router
    ->getRouteCollection());
}