You are here

public function MigrateFieldDeprecationTest::testDeprecatedEmail in Drupal 8

Tests trigger_error when an Email object is created.

@expectedDeprecation Drupal\Core\Field\Plugin\migrate\field\Email is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\field\Plugin\migrate\field\Email instead. See https://www.drupal.org/node/3009286

File

core/tests/Drupal/Tests/Core/Field/MigrateFieldDeprecationTest.php, line 23

Class

MigrateFieldDeprecationTest
Test trigger_error is fired when deprecated classes are instantiated.

Namespace

Drupal\Tests\Core\Field

Code

public function testDeprecatedEmail() {
  new Email([], 'email', []);
}