protected function ActionResourceTestBase::getExpectedNormalizedEntity in Drupal 9
Same name and namespace in other branches
- 8 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
Namespace
Drupal\Tests\system\Functional\RestCode
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(),
];
}