function LazyRouteCollectionTest::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/LazyRouteCollectionTest.php \Drupal\Tests\Core\Routing\LazyRouteCollectionTest::setUp()
- 11.x core/tests/Drupal/Tests/Core/Routing/LazyRouteCollectionTest.php \Drupal\Tests\Core\Routing\LazyRouteCollectionTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ LazyRouteCollectionTest.php, line 37
Class
- LazyRouteCollectionTest
- @coversDefaultClass \Drupal\Core\Routing\LazyRouteCollection
Namespace
Drupal\Tests\Core\RoutingCode
protected function setUp() : void {
parent::setUp();
$this->routeProvider = $this->createMock(RouteProviderInterface::class);
$this->testRoutes = [
'route_1' => new Route('/route-1'),
'route_2' => new Route('/route-2'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.