You are here

protected function VocabularyResourceTestBase::getExpectedNormalizedEntity in Drupal 9

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

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php, line 48

Class

VocabularyResourceTestBase

Namespace

Drupal\Tests\taxonomy\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'uuid' => $this->entity
      ->uuid(),
    'vid' => 'llama',
    'langcode' => 'en',
    'status' => TRUE,
    'dependencies' => [],
    'name' => 'Llama',
    'description' => NULL,
    'weight' => 0,
  ];
}