You are here

public function TimeStampItemNormalizerTraitDeprecatedTest::testDeprecated in Drupal 8

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();
}