function EntityTestDateOnlyTest::getExpectedNormalizedEntity
Same name in other branches
- 9 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDateonlyTest::getExpectedNormalizedEntity()
- 8.9.x core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDateonlyTest::getExpectedNormalizedEntity()
- 10 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDateOnlyTest::getExpectedNormalizedEntity()
Overrides EntityTestResourceTestBase::getExpectedNormalizedEntity
File
-
core/
modules/ datetime/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDateOnlyTest.php, line 96
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,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.