public function RoutesTest::expectedRoutes in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::expectedRoutes()
- 9 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 199
Class
- RoutesTest
- @coversDefaultClass \Drupal\jsonapi\Routing\Routes @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\RoutingCode
public 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',
],
];
}