You are here

protected function MenuResourceTestBase::getExpectedNormalizedEntity in Drupal 9

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

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/system/tests/src/Functional/Rest/MenuResourceTestBase.php, line 49

Class

MenuResourceTestBase

Namespace

Drupal\Tests\system\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'description' => 'Menu',
    'id' => 'menu',
    'label' => 'Menu',
    'langcode' => 'en',
    'locked' => FALSE,
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}