protected function LazyRouteCollectionTest::setUp in Drupal 10
Same name and namespace in other branches
- 9 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 35
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'),
];
}