protected function EntityTestDatetimeTest::getExpectedNormalizedEntity 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::getExpectedNormalizedEntity()
Returns the expected normalization of the entity.
Return value
array
Overrides EntityTestResourceTestBase::getExpectedNormalizedEntity
See also
::createEntity()
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',
],
],
];
}