3 namespace Drupal\Tests\migrate_drupal\Kernel;
5 use Drupal\migrate_cckfield_plugin_manager_test\Plugin\migrate\cckfield\D6FileField;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
9 * @group migrate_drupal
12 class CckFieldBackwardsCompatibilityTest extends MigrateDrupal6TestBase {
17 public static $modules = ['file', 'migrate_cckfield_plugin_manager_test'];
20 * Ensures that the cckfield backwards compatibility layer is invoked.
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.
24 public function testBackwardsCompatibility() {
25 $migration = $this->container
26 ->get('plugin.manager.migration')
27 ->getDefinition('d6_node:story');
29 $this->assertSame(D6FileField::class, $migration['process']['field_test_filefield']['class']);