You are here

protected function ActionResourceTestBase::getExpectedNormalizedEntity in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\system\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php, line 54

Class

ActionResourceTestBase

Namespace

Drupal\Tests\system\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'configuration' => [
      'rid' => 'anonymous',
    ],
    'dependencies' => [
      'config' => [
        'user.role.anonymous',
      ],
      'module' => [
        'user',
      ],
    ],
    'id' => 'user_add_role_action.anonymous',
    'label' => 'Add the anonymous role to the selected users',
    'langcode' => 'en',
    'plugin' => 'user_add_role_action',
    'status' => TRUE,
    'type' => 'user',
    'uuid' => $this->entity
      ->uuid(),
  ];
}