function EntityTestDateonlyTest::getNormalizedPostEntity

Same name in other branches
  1. 9 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDateonlyTest::getNormalizedPostEntity()
  2. 10 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDateOnlyTest::getNormalizedPostEntity()
  3. 11.x core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\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 107

Class

EntityTestDateonlyTest
Tests the datetime field constraint with 'date' items.

Namespace

Drupal\Tests\datetime\Functional\EntityResource\EntityTest

Code

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.