You are here

protected function CommentTypeResourceTestBase::getExpectedNormalizedEntity in Drupal 10

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

File

core/modules/comment/tests/src/Functional/Rest/CommentTypeResourceTestBase.php, line 57

Class

CommentTypeResourceTestBase
ResourceTestBase for CommentType entity.

Namespace

Drupal\Tests\comment\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,
    'target_entity_type_id' => 'node',
    'uuid' => $this->entity
      ->uuid(),
  ];
}