protected function EntityTestJsonInternalPropertyNormalizerTest::getNormalizedPostEntity in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestJsonInternalPropertyNormalizerTest.php \Drupal\Tests\entity_test\Functional\Rest\EntityTestJsonInternalPropertyNormalizerTest::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides EntityTestResourceTestBase::getNormalizedPostEntity
See also
::testPost
File
- core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestJsonInternalPropertyNormalizerTest.php, line 83
Class
- EntityTestJsonInternalPropertyNormalizerTest
- Test that internal properties are not exposed in the 'json' format.
Namespace
Drupal\Tests\entity_test\Functional\RestCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'field_test_internal' => [
[
'value' => 'This value shall not be internal!',
],
],
];
}