You are here

protected function BlockContentTypeResourceTestBase::getExpectedNormalizedEntity in Drupal 9

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

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php, line 51

Class

BlockContentTypeResourceTestBase

Namespace

Drupal\Tests\block_content\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'description' => 'Provides a competitive alternative to the "basic" type',
    'id' => 'pascal',
    'label' => 'Pascal',
    'langcode' => 'en',
    'revision' => 0,
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}