protected function BlockContentResourceTestBase::getNormalizedPostEntity in Drupal 9
Same name and namespace in other branches
- 8 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 161
Class
- BlockContentResourceTestBase
- ResourceTestBase for BlockContent entity.
Namespace
Drupal\Tests\block_content\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'type' => [
[
'target_id' => 'basic',
],
],
'info' => [
[
'value' => 'Dramallama',
],
],
];
}