function CckFieldBackwardsCompatibilityTest::testBackwardsCompatibility

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.

File

core/modules/migrate_drupal/tests/src/Kernel/CckFieldBackwardsCompatibilityTest.php, line 24

Class

CckFieldBackwardsCompatibilityTest
@group migrate_drupal @group legacy

Namespace

Drupal\Tests\migrate_drupal\Kernel

Code

public function testBackwardsCompatibility() {
    $migration = $this->container
        ->get('plugin.manager.migration')
        ->getDefinition('d6_node:story');
    $this->assertSame(D6FileField::class, $migration['process']['field_test_filefield']['class']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.