public function RouterTest::testThatRouteCollectionIsLoaded

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/RouterTest.php, line 80

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