protected function MessageResourceTestBase::getNormalizedPostEntity in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php \Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase::getNormalizedPostEntity()
- 9 core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php \Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
See also
::testPost
File
- core/
modules/ contact/ tests/ src/ Functional/ Rest/ MessageResourceTestBase.php, line 73
Class
Namespace
Drupal\Tests\contact\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'subject' => [
[
'value' => 'Dramallama',
],
],
'contact_form' => [
[
'target_id' => 'camelids',
],
],
'message' => [
[
'value' => 'http://www.urbandictionary.com/define.php?term=drama%20llama',
],
],
];
}