You are here

protected function ConfigurableLanguageResourceTestBase::getExpectedNormalizedEntity in Drupal 9

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

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php, line 50

Class

ConfigurableLanguageResourceTestBase

Namespace

Drupal\Tests\language\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'direction' => 'ltr',
    'id' => 'll',
    'label' => 'Llama Language',
    'langcode' => 'en',
    'locked' => FALSE,
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
    'weight' => 0,
  ];
}