Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / migrate_drupal / tests / src / Kernel / CckFieldBackwardsCompatibilityTest.php
1 <?php
2
3 namespace Drupal\Tests\migrate_drupal\Kernel;
4
5 use Drupal\migrate_cckfield_plugin_manager_test\Plugin\migrate\cckfield\D6FileField;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
7
8 /**
9  * @group migrate_drupal
10  * @group legacy
11  */
12 class CckFieldBackwardsCompatibilityTest extends MigrateDrupal6TestBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public static $modules = ['file', 'migrate_cckfield_plugin_manager_test'];
18
19   /**
20    * Ensures that the cckfield backwards compatibility layer is invoked.
21    *
22    * @expectedDeprecation MigrateCckFieldInterface is deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. Use \Drupal\migrate_drupal\Annotation\MigrateField instead.
23    */
24   public function testBackwardsCompatibility() {
25     $migration = $this->container
26       ->get('plugin.manager.migration')
27       ->getDefinition('d6_node:story');
28
29     $this->assertSame(D6FileField::class, $migration['process']['field_test_filefield']['class']);
30   }
31
32 }