public function RoutesTest::testRoutes in JSON:API 8
Same name and namespace in other branches
- 8.2 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
- tests/
src/ Unit/ Routing/ RoutesTest.php, line 153  
Class
- RoutesTest
 - @coversDefaultClass \Drupal\jsonapi\Routing\Routes @group jsonapi
 
Namespace
Drupal\Tests\jsonapi\Unit\RoutingCode
public function testRoutes($route) {
  $this
    ->assertArrayHasKey($route, $this->routes['ok']
    ->routes()
    ->all());
}