function TimeStampItemNormalizerTraitDeprecatedTest::testDeprecated

Tests that TimeStampItemNormalizerTrait throws a deprecation error.

@expectedDeprecation Drupal\serialization\Normalizer\TimeStampItemNormalizerTrait is deprecated in Drupal 8.7.0 and will be removed in Drupal 9.0.0. Use \Drupal\serialization\Normalizer\TimestampNormalizer instead.

File

core/modules/serialization/tests/src/Unit/Normalizer/TimeStampItemNormalizerTraitDeprecatedTest.php, line 22

Class

TimeStampItemNormalizerTraitDeprecatedTest
Tests that TimeStampItemNormalizerTrait throws a deprecation error.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function testDeprecated() {
    $test = new TimeStampItemNormalizerTraitDeprecatedTestClass();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.