public function RouterTest::testThatRouteCollectionIsLoaded in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RouterTest.php \Symfony\Component\Routing\Tests\RouterTest::testThatRouteCollectionIsLoaded()
File
- vendor/
symfony/ routing/ Tests/ RouterTest.php, line 81
Class
Namespace
Symfony\Component\Routing\TestsCode
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());
}