You are here

protected function BlockContentHalJsonAnonTest::getNormalizedPostEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block_content/tests/src/Functional/Hal/BlockContentHalJsonAnonTest.php \Drupal\Tests\block_content\Functional\Hal\BlockContentHalJsonAnonTest::getNormalizedPostEntity()

Returns the normalized POST entity.

Return value

array

Overrides BlockContentResourceTestBase::getNormalizedPostEntity

See also

::testPost

File

core/modules/block_content/tests/src/Functional/Hal/BlockContentHalJsonAnonTest.php, line 61

Class

BlockContentHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\block_content\Functional\Hal

Code

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