You are here

public function ResourceTypeRepositoryTest::getFieldMappingProvider in Drupal 8

Data provider for testGetFieldMapping.

These field name lists are designed to trigger a naming conflict in the mapping: the special-cased names "type" or "id", and the name "{$entity_type_id}_type" or "{$entity_type_id}_id", respectively.

@returns array The data for the test method.

File

core/modules/jsonapi/tests/src/Kernel/ResourceType/ResourceTypeRepositoryTest.php, line 145

Class

ResourceTypeRepositoryTest
@coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository @group jsonapi

Namespace

Drupal\Tests\jsonapi\Kernel\ResourceType

Code

public function getFieldMappingProvider() {
  return [
    [
      [
        'type',
        'node_type',
      ],
    ],
    [
      [
        'id',
        'node_id',
      ],
    ],
  ];
}