Security update for Core, with self-updated composer
[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  */
11 class CckFieldBackwardsCompatibilityTest extends MigrateDrupal6TestBase {
12
13   /**
14    * {@inheritdoc}
15    */
16   public static $modules = ['file', 'migrate_cckfield_plugin_manager_test'];
17
18   /**
19    * Ensures that the cckfield backwards compatibility layer is invoked.
20    */
21   public function testBackwardsCompatibility() {
22     $migration = $this->container
23       ->get('plugin.manager.migration')
24       ->getDefinition('d6_node:story');
25
26     $this->assertSame(D6FileField::class, $migration['process']['field_test_filefield']['class']);
27   }
28
29 }