You are here

public function RelatedResourceTypesTest::getRelatableResourceTypesByFieldProvider in JSON:API 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/ResourceType/RelatedResourceTypesTest.php \Drupal\Tests\jsonapi\Kernel\ResourceType\RelatedResourceTypesTest::getRelatableResourceTypesByFieldProvider()

Provides cases to test getRelatableTypesByField.

File

tests/src/Kernel/ResourceType/RelatedResourceTypesTest.php, line 174

Class

RelatedResourceTypesTest
@coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceType @coversClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository @group jsonapi

Namespace

Drupal\Tests\jsonapi\Kernel\ResourceType

Code

public function getRelatableResourceTypesByFieldProvider() {
  return [
    [
      'node',
      'foo',
      'field_ref_foo',
    ],
    [
      'node',
      'foo',
      'field_ref_bar',
    ],
    [
      'node',
      'foo',
      'field_ref_any',
    ],
  ];
}