function EntityTestDateOnlyTest::getNormalizedPostEntity
Overrides EntityTestResourceTestBase::getNormalizedPostEntity
1 call to EntityTestDateOnlyTest::getNormalizedPostEntity()
- EntityTestDateOnlyTest::assertNormalizationEdgeCases in core/
modules/ datetime/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDateOnlyTest.php  - Asserts normalization-specific edge cases.
 
File
- 
              core/
modules/ datetime/ tests/ src/ Functional/ EntityResource/ EntityTest/ EntityTestDateOnlyTest.php, line 109  
Class
- EntityTestDateOnlyTest
 - Tests the datetime field constraint with 'date' items.
 
Namespace
Drupal\Tests\datetime\Functional\EntityResource\EntityTestCode
protected function getNormalizedPostEntity() {
  return parent::getNormalizedPostEntity() + [
    static::$fieldName => [
      [
        'value' => static::$dateString,
      ],
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.