protected function MessageResourceTestBase::getNormalizedPostEntity in Drupal 8
Same name and namespace in other branches
- 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
1 call to MessageResourceTestBase::getNormalizedPostEntity()
- MessageHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ contact/ tests/ src/ Functional/ Hal/ MessageHalJsonAnonTest.php - Returns the normalized POST entity.
1 method overrides MessageResourceTestBase::getNormalizedPostEntity()
- MessageHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ contact/ tests/ src/ Functional/ Hal/ MessageHalJsonAnonTest.php - Returns the normalized POST entity.
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',
],
],
];
}