You are here

protected function FieldConfigResourceTestBase::getExpectedNormalizedEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldConfigResourceTestBase::getExpectedNormalizedEntity()
  2. 9 core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldConfigResourceTestBase::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/FieldConfigResourceTestBase.php, line 63

Class

FieldConfigResourceTestBase

Namespace

Drupal\Tests\field\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'bundle' => 'camelids',
    'default_value' => [],
    'default_value_callback' => '',
    'dependencies' => [
      'config' => [
        'field.storage.node.field_llama',
        'node.type.camelids',
      ],
      'module' => [
        'text',
      ],
    ],
    'description' => '',
    'entity_type' => 'node',
    'field_name' => 'field_llama',
    'field_type' => 'text',
    'id' => 'node.camelids.field_llama',
    'label' => 'field_llama',
    'langcode' => 'en',
    'required' => FALSE,
    'settings' => [],
    'status' => TRUE,
    'translatable' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}