You are here

protected function BlockContentResourceTestBase::getNormalizedPostEntity in Drupal 8

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

Returns the normalized POST entity.

Return value

array

Overrides EntityResourceTestBase::getNormalizedPostEntity

See also

::testPost

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

File

core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php, line 154

Class

BlockContentResourceTestBase
ResourceTestBase for BlockContent entity.

Namespace

Drupal\Tests\block_content\Functional\Rest

Code

protected function getNormalizedPostEntity() {
  return [
    'type' => [
      [
        'target_id' => 'basic',
      ],
    ],
    'info' => [
      [
        'value' => 'Dramallama',
      ],
    ],
  ];
}