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