function RoutesTest::expectedRoutes
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::expectedRoutes()
- 8.9.x core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::expectedRoutes()
- 10 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::expectedRoutes()
Lists routes which should have been created.
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ Routing/ RoutesTest.php, line 201
Class
- RoutesTest
- @coversDefaultClass \Drupal\jsonapi\Routing\Routes @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\RoutingCode
public static function expectedRoutes() {
return [
[
'jsonapi.entity_type_1--bundle_1_1.individual',
],
[
'jsonapi.entity_type_1--bundle_1_1.collection',
],
[
'jsonapi.entity_type_1--bundle_1_1.internal.relationship.get',
],
[
'jsonapi.entity_type_1--bundle_1_1.internal.relationship.post',
],
[
'jsonapi.entity_type_1--bundle_1_1.internal.relationship.patch',
],
[
'jsonapi.entity_type_1--bundle_1_1.internal.relationship.delete',
],
[
'jsonapi.entity_type_1--bundle_1_1.external.related',
],
[
'jsonapi.entity_type_1--bundle_1_1.external.relationship.get',
],
[
'jsonapi.entity_type_1--bundle_1_1.external.relationship.post',
],
[
'jsonapi.entity_type_1--bundle_1_1.external.relationship.patch',
],
[
'jsonapi.entity_type_1--bundle_1_1.external.relationship.delete',
],
[
'jsonapi.entity_type_1--bundle_1_1.both.related',
],
[
'jsonapi.entity_type_1--bundle_1_1.both.relationship.get',
],
[
'jsonapi.entity_type_1--bundle_1_1.both.relationship.post',
],
[
'jsonapi.entity_type_1--bundle_1_1.both.relationship.patch',
],
[
'jsonapi.entity_type_1--bundle_1_1.both.relationship.delete',
],
[
'jsonapi.resource_list',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.