function 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 194

Class

RoutesTest
@coversDefaultClass \Drupal\jsonapi\Routing\Routes[[api-linebreak]] @group jsonapi

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.