function ActionResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 8.9.x core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\system\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
  2. 10 core/modules/action/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\action\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
  3. 11.x core/modules/action/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\action\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
  4. 11.x core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\system\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
  5. 10 core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\system\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

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(),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.