function RoutesTest::testRoutes

Ensures that the expected routes are created or not created.

Attributes

#[DataProvider('expectedRoutes')]

File

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

Class

RoutesTest
Tests Drupal\jsonapi\Routing\Routes.

Namespace

Drupal\Tests\jsonapi\Unit\Routing

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.