You are here

public function RoutesTest::testInternalRoutes in JSON:API 8.2

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

Ensures that no routes are created for internal resources.

@dataProvider notExpectedRoutes

File

tests/src/Unit/Routing/RoutesTest.php, line 220

Class

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

Namespace

Drupal\Tests\jsonapi\Unit\Routing

Code

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