diff --git a/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/d6/DateFieldTest.php b/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/d6/DateFieldTest.php index 7e6788110e900abe36b5ba581ac82b20a2e1e391..c2c50174be137122a90f3fbe8422842a46353d30 100644 --- a/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/d6/DateFieldTest.php +++ b/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/d6/DateFieldTest.php @@ -24,6 +24,8 @@ class DateFieldTest extends UnitTestCase { /** * Tests an Exception is thrown when the field type is not a known date type. + * + * @expectedDeprecation DateField is deprecated in Drupal 8.4.x and will be removed before Drupal 9.0.x. Use \Drupal\datetime\Plugin\migrate\field\DateField instead. */ public function testUnknownDateType() { $this->migration = $this->prophesize('Drupal\migrate\Plugin\MigrationInterface')->reveal();