31c8cb1b9c9d35497c2b1441651fadb8af1ff129
[yaffs-website] / web / core / modules / field / tests / src / Unit / Plugin / migrate / process / FieldTypeDefaultsTest.php
1 <?php
2
3 namespace Drupal\Tests\field\Unit\Plugin\migrate\process;
4
5 use Drupal\field\Plugin\migrate\process\FieldTypeDefaults;
6 use Drupal\Tests\migrate\Unit\process\MigrateProcessTestCase;
7
8 /**
9  * Tests the deprecation of the field_type_defaults process plugin.
10  *
11  * @coversDefaultClass \Drupal\field\Plugin\migrate\process\FieldTypeDefaults
12  * @group field
13  * @group legacy
14  */
15 class FieldTypeDefaultsTest extends MigrateProcessTestCase {
16
17   /**
18    * Tests that the field_type_defaults plugin triggers a deprecation error.
19    *
20    * @expectedDeprecation The field_type_defaults process plugin is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Use d6_field_type_defaults or d7_field_type_defaults instead. See https://www.drupal.org/node/2944589.
21    */
22   public function testDeprecatedError() {
23     $this->plugin = new FieldTypeDefaults([], 'field_type_defaults', []);
24   }
25
26 }