function EntityTestDateRangeTest::getExpectedNormalizedEntity
Same name in other branches
- 9 core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php \Drupal\Tests\datetime_range\Functional\EntityResource\EntityTest\EntityTestDateRangeTest::getExpectedNormalizedEntity()
- 8.9.x core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php \Drupal\Tests\datetime_range\Functional\EntityResource\EntityTest\EntityTestDateRangeTest::getExpectedNormalizedEntity()
- 11.x core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php \Drupal\Tests\datetime_range\Functional\EntityResource\EntityTest\EntityTestDateRangeTest::getExpectedNormalizedEntity()
Overrides EntityTestResourceTestBase::getExpectedNormalizedEntity
File
-
core/
modules/ datetime_range/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDateRangeTest.php, line 95
Class
- EntityTestDateRangeTest
- Tests the 'daterange' field's normalization.
Namespace
Drupal\Tests\datetime_range\Functional\EntityResource\EntityTestCode
protected function getExpectedNormalizedEntity() {
return parent::getExpectedNormalizedEntity() + [
static::$fieldName => [
[
'value' => '2017-03-02T07:02:00+11:00',
'end_value' => '2017-03-02T07:02:00+11:00',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.