protected function NodeResourceTestBase::getNormalizedPostEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
See also
::testPost
1 call to NodeResourceTestBase::getNormalizedPostEntity()
- NodeHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ node/ tests/ src/ Functional/ Hal/ NodeHalJsonAnonTest.php - Returns the normalized POST entity.
1 method overrides NodeResourceTestBase::getNormalizedPostEntity()
- NodeHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ node/ tests/ src/ Functional/ Hal/ NodeHalJsonAnonTest.php - Returns the normalized POST entity.
File
- core/
modules/ node/ tests/ src/ Functional/ Rest/ NodeResourceTestBase.php, line 199
Class
Namespace
Drupal\Tests\node\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'type' => [
[
'target_id' => 'camelids',
],
],
'title' => [
[
'value' => 'Dramallama',
],
],
];
}