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
11 class CckFieldBackwardsCompatibilityTest extends MigrateDrupal6TestBase {
16 public static $modules = ['file', 'migrate_cckfield_plugin_manager_test'];
19 * Ensures that the cckfield backwards compatibility layer is invoked.
21 public function testBackwardsCompatibility() {
22 $migration = $this->container
23 ->get('plugin.manager.migration')
24 ->getDefinition('d6_node:story');
26 $this->assertSame(D6FileField::class, $migration['process']['field_test_filefield']['class']);