Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Kernel/ResourceType/ResourceTypeRepositoryTest.php \Drupal\Tests\jsonapi\Kernel\ResourceType\ResourceTypeRepositoryTest::getFieldsProvider()

Data provider for testMappingNameConflictCheck.

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.

Return value

array The data for the test method.

File

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

Class

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

Namespace

Drupal\Tests\jsonapi\Kernel\ResourceType

Code

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