You are here

protected function EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

1 call to EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
LayoutBuilderEntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in core/modules/layout_builder/tests/src/Functional/Rest/LayoutBuilderEntityViewDisplayResourceTestBase.php
Returns the expected normalization of the entity.
1 method overrides EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
LayoutBuilderEntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in core/modules/layout_builder/tests/src/Functional/Rest/LayoutBuilderEntityViewDisplayResourceTestBase.php
Returns the expected normalization of the entity.

File

core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php, line 64

Class

EntityViewDisplayResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'bundle' => 'camelids',
    'content' => [
      'links' => [
        'region' => 'content',
        'weight' => 100,
        'settings' => [],
        'third_party_settings' => [],
      ],
    ],
    'dependencies' => [
      'config' => [
        'node.type.camelids',
      ],
      'module' => [
        'user',
      ],
    ],
    'hidden' => [],
    'id' => 'node.camelids.default',
    'langcode' => 'en',
    'mode' => 'default',
    'status' => TRUE,
    'targetEntityType' => 'node',
    'uuid' => $this->entity
      ->uuid(),
  ];
}