You are here

protected function EntityTestBundleResourceTestBase::getExpectedNormalizedEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestBundleResourceTestBase.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestBundleResourceTestBase::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestBundleResourceTestBase.php, line 54

Class

EntityTestBundleResourceTestBase

Namespace

Drupal\Tests\entity_test\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'description' => 'Camelids are large, strictly herbivorous animals with slender necks and long legs.',
    'id' => 'camelids',
    'label' => 'Camelids',
    'langcode' => 'en',
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}