You are here

protected function DateFormatResourceTestBase::getExpectedNormalizedEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Rest/DateFormatResourceTestBase.php \Drupal\FunctionalTests\Rest\DateFormatResourceTestBase::getExpectedNormalizedEntity()
  2. 10 core/tests/Drupal/FunctionalTests/Rest/DateFormatResourceTestBase.php \Drupal\FunctionalTests\Rest\DateFormatResourceTestBase::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/tests/Drupal/FunctionalTests/Rest/DateFormatResourceTestBase.php, line 56

Class

DateFormatResourceTestBase
ResourceTestBase for DateFormat entity.

Namespace

Drupal\FunctionalTests\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'id' => 'llama',
    'label' => 'Llama',
    'langcode' => 'en',
    'locked' => FALSE,
    'pattern' => 'F d, Y',
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}