You are here

protected function EntityTestHalJsonAnonTest::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides EntityTestResourceTestBase::getNormalizedPostEntity

See also

::testPost

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

File

core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestHalJsonAnonTest.php, line 88

Class

EntityTestHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\entity_test\Functional\Hal

Code

protected function getNormalizedPostEntity() {
  return parent::getNormalizedPostEntity() + [
    '_links' => [
      'type' => [
        'href' => $this->baseUrl . '/rest/type/entity_test/entity_test',
      ],
    ],
  ];
}