protected function EntityTestDatetimeTest::getNormalizedPostEntity in Drupal 8
Same name and namespace in other branches
- 9 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDatetimeTest::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides EntityTestResourceTestBase::getNormalizedPostEntity
See also
::testPost
1 call to EntityTestDatetimeTest::getNormalizedPostEntity()
- EntityTestDatetimeTest::assertNormalizationEdgeCases in core/
modules/ datetime/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDatetimeTest.php - Asserts normalization-specific edge cases.
File
- core/
modules/ datetime/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDatetimeTest.php, line 107
Class
- EntityTestDatetimeTest
- Tests the datetime field constraint with 'datetime' items.
Namespace
Drupal\Tests\datetime\Functional\EntityResource\EntityTestCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
static::$fieldName => [
[
'value' => static::$dateString . '+00:00',
],
],
];
}