protected function EntityTestDatetimeTest::getExpectedNormalizedEntity in Drupal 10
Same name and namespace in other branches
- 8 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDatetimeTest::getExpectedNormalizedEntity()
- 9 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDatetimeTest::getExpectedNormalizedEntity()
File
- core/
modules/ datetime/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDatetimeTest.php, line 94
Class
- EntityTestDatetimeTest
- Tests the datetime field constraint with 'datetime' items.
Namespace
Drupal\Tests\datetime\Functional\EntityResource\EntityTestCode
protected function getExpectedNormalizedEntity() {
return parent::getExpectedNormalizedEntity() + [
static::$fieldName => [
[
'value' => '2017-03-02T07:02:00+11:00',
],
],
];
}