You are here

protected function EntityTestBundleResourceTestBase::getExpectedNormalizedEntity in Drupal 8

Same name and namespace in other branches
  1. 9 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 57

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(),
  ];
}