function RoutesTest::testInternalRoutes
Ensures that no routes are created for internal resources.
Attributes
#[DataProvider('notExpectedRoutes')]
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ Routing/ RoutesTest.php, line 237
Class
Namespace
Drupal\Tests\jsonapi\Unit\RoutingCode
public function testInternalRoutes($route) : void {
$this->assertArrayNotHasKey($route, $this->routes['ok']
->routes()
->all());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.