You are here

public function LazyRouteCollectionTest::setUp in Drupal 9

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\Routing

Code

public 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'),
  ];
}