You are here

public function MigrateFieldDeprecationTest::testDeprecatedNumberField in Drupal 8

Tests trigger_error when a NumberField object is created.

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

File

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

Class

MigrateFieldDeprecationTest
Test trigger_error is fired when deprecated classes are instantiated.

Namespace

Drupal\Tests\Core\Field

Code

public function testDeprecatedNumberField() {
  new NumberField([], 'number_default', []);
}