function VocabularyResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
- 
              core/
modules/ taxonomy/ tests/ src/ Functional/ Rest/ VocabularyResourceTestBase.php, line 48  
Class
Namespace
Drupal\Tests\taxonomy\Functional\RestCode
protected function getExpectedNormalizedEntity() {
  return [
    'uuid' => $this->entity
      ->uuid(),
    'vid' => 'llama',
    'langcode' => 'en',
    'status' => TRUE,
    'dependencies' => [],
    'name' => 'Llama',
    'description' => NULL,
    'weight' => 0,
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.