You are here

protected function EntityViewModeResourceTestBase::getExpectedNormalizedEntity in Drupal 10

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

File

core/tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php, line 50

Class

EntityViewModeResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'cache' => TRUE,
    'dependencies' => [
      'module' => [
        'user',
      ],
    ],
    'id' => 'user.test',
    'label' => 'Test',
    'langcode' => 'en',
    'status' => TRUE,
    'targetEntityType' => 'user',
    'uuid' => $this->entity
      ->uuid(),
  ];
}