You are here

protected function UserResourceTestBase::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides EntityResourceTestBase::getNormalizedPostEntity

See also

::testPost

1 call to UserResourceTestBase::getNormalizedPostEntity()
UserHalJsonAnonTest::getNormalizedPostEntity in core/modules/user/tests/src/Functional/Hal/UserHalJsonAnonTest.php
Returns the normalized POST entity.
1 method overrides UserResourceTestBase::getNormalizedPostEntity()
UserHalJsonAnonTest::getNormalizedPostEntity in core/modules/user/tests/src/Functional/Hal/UserHalJsonAnonTest.php
Returns the normalized POST entity.

File

core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php, line 132

Class

UserResourceTestBase

Namespace

Drupal\Tests\user\Functional\Rest

Code

protected function getNormalizedPostEntity() {
  return [
    'name' => [
      [
        'value' => 'Dramallama',
      ],
    ],
  ];
}