You are here

protected function EntityTestDatetimeTest::getExpectedNormalizedEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php \Drupal\Tests\datetime\Functional\EntityResource\EntityTest\EntityTestDatetimeTest::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityTestResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php, line 94

Class

EntityTestDatetimeTest
Tests the datetime field constraint with 'datetime' items.

Namespace

Drupal\Tests\datetime\Functional\EntityResource\EntityTest

Code

protected function getExpectedNormalizedEntity() {
  return parent::getExpectedNormalizedEntity() + [
    static::$fieldName => [
      [
        'value' => '2017-03-02T07:02:00+11:00',
      ],
    ],
  ];
}