You are here

protected function EntityTestResourceTestBase::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides EntityResourceTestBase::getNormalizedPostEntity

See also

::testPost

7 calls to EntityTestResourceTestBase::getNormalizedPostEntity()
EntityTestDateonlyTest::getNormalizedPostEntity in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php
Returns the normalized POST entity.
EntityTestDateRangeTest::getNormalizedPostEntity in core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php
Returns the normalized POST entity.
EntityTestDatetimeTest::getNormalizedPatchEntity in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php
Returns the normalized PATCH entity.
EntityTestDatetimeTest::getNormalizedPostEntity in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php
Returns the normalized POST entity.
EntityTestHalJsonAnonTest::getNormalizedPostEntity in core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestHalJsonAnonTest.php
Returns the normalized POST entity.

... See full list

6 methods override EntityTestResourceTestBase::getNormalizedPostEntity()
EntityTestDateonlyTest::getNormalizedPostEntity in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php
Returns the normalized POST entity.
EntityTestDateRangeTest::getNormalizedPostEntity in core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php
Returns the normalized POST entity.
EntityTestDatetimeTest::getNormalizedPostEntity in core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php
Returns the normalized POST entity.
EntityTestHalJsonAnonTest::getNormalizedPostEntity in core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestHalJsonAnonTest.php
Returns the normalized POST entity.
EntityTestJsonInternalPropertyNormalizerTest::getNormalizedPostEntity in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestJsonInternalPropertyNormalizerTest.php
Returns the normalized POST entity.

... See full list

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestResourceTestBase.php, line 134

Class

EntityTestResourceTestBase

Namespace

Drupal\Tests\entity_test\Functional\Rest

Code

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