You are here

protected function EntityTestLabelResourceTestBase::getNormalizedPostEntity in Drupal 9

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

Returns the normalized POST entity.

Return value

array

Overrides EntityResourceTestBase::getNormalizedPostEntity

See also

::testPost

1 call to EntityTestLabelResourceTestBase::getNormalizedPostEntity()
EntityTestLabelHalJsonAnonTest::getNormalizedPostEntity in core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestLabelHalJsonAnonTest.php
Returns the normalized POST entity.
1 method overrides EntityTestLabelResourceTestBase::getNormalizedPostEntity()
EntityTestLabelHalJsonAnonTest::getNormalizedPostEntity in core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestLabelHalJsonAnonTest.php
Returns the normalized POST entity.

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php, line 120

Class

EntityTestLabelResourceTestBase

Namespace

Drupal\Tests\entity_test\Functional\Rest

Code

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