You are here

public function RoutesTest::testRoutes in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::testRoutes()
  2. 9 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::testRoutes()

Ensures that the expected routes are created or not created.

@dataProvider expectedRoutes

File

core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php, line 192

Class

RoutesTest
@coversDefaultClass \Drupal\jsonapi\Routing\Routes @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Routing

Code

public function testRoutes($route) {
  $this
    ->assertArrayHasKey($route, $this->routes['ok']
    ->routes()
    ->all());
}