You are here

protected function FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity()
  2. 9 core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php, line 48

Class

FieldStorageConfigResourceTestBase

Namespace

Drupal\Tests\field\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'cardinality' => 1,
    'custom_storage' => FALSE,
    'dependencies' => [
      'module' => [
        'node',
      ],
    ],
    'entity_type' => 'node',
    'field_name' => 'true_llama',
    'id' => 'node.true_llama',
    'indexes' => [],
    'langcode' => 'en',
    'locked' => FALSE,
    'module' => 'core',
    'persist_with_no_fields' => FALSE,
    'settings' => [],
    'status' => TRUE,
    'translatable' => TRUE,
    'type' => 'boolean',
    'uuid' => $this->entity
      ->uuid(),
  ];
}