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
index 11dceec733810a74758200481e1ed2dd2caa6d2f..60e08e5a9e8e18632e18867781d06b8af764c594 100644 (file)
@@ -2,28 +2,31 @@
 
 namespace Drupal\Tests\migrate_drupal\Kernel;
 
-use Drupal\migrate_field_plugin_manager_test\Plugin\migrate\cckfield\d6\FileField;
+use Drupal\migrate_cckfield_plugin_manager_test\Plugin\migrate\cckfield\D6FileField;
 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
 
 /**
  * @group migrate_drupal
+ * @group legacy
  */
 class CckFieldBackwardsCompatibilityTest extends MigrateDrupal6TestBase {
 
   /**
    * {@inheritdoc}
    */
-  public static $modules = ['file', 'migrate_field_plugin_manager_test'];
+  public static $modules = ['file', 'migrate_cckfield_plugin_manager_test'];
 
   /**
    * Ensures that the cckfield backwards compatibility layer is invoked.
+   *
+   * @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.
    */
   public function testBackwardsCompatibility() {
     $migration = $this->container
       ->get('plugin.manager.migration')
       ->getDefinition('d6_node:story');
 
-    $this->assertSame(FileField::class, $migration['process']['field_test_filefield']['class']);
+    $this->assertSame(D6FileField::class, $migration['process']['field_test_filefield']['class']);
   }
 
 }