function RoutesTest::testRoutes
Same name and namespace in other branches
- 10 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::testRoutes()
- 11.x core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::testRoutes()
- 9 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::testRoutes()
- 8.9.x 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.
Attributes
#[DataProvider('expectedRoutes')]
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ Routing/ RoutesTest.php, line 196
Class
Namespace
Drupal\Tests\jsonapi\Unit\RoutingCode
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.