public function RelatedResourceTypesTest::getRelatableResourceTypesProvider in JSON:API 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/ResourceType/RelatedResourceTypesTest.php \Drupal\Tests\jsonapi\Kernel\ResourceType\RelatedResourceTypesTest::getRelatableResourceTypesProvider()
@covers ::getRelatableResourceTypes @dataProvider getRelatableResourceTypesProvider
File
- tests/
src/ Kernel/ ResourceType/ RelatedResourceTypesTest.php, line 144
Class
- RelatedResourceTypesTest
- @coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceType @coversClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository @group jsonapi
Namespace
Drupal\Tests\jsonapi\Kernel\ResourceTypeCode
public function getRelatableResourceTypesProvider() {
return [
[
'node--foo',
[
'field_ref_foo' => [
'node--foo',
],
'field_ref_bar' => [
'node--bar',
],
'field_ref_any' => [
'node--foo',
'node--bar',
],
],
],
[
'node--bar',
[],
],
];
}