You are here

protected function EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
  2. 10 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(),
  ];
}