e2a218955951b2cfd2c0b1eeba1e712a04bd7710
[yaffs-website] / web / core / modules / comment / tests / src / Kernel / Migrate / d6 / MigrateCommentVariableFieldTest.php
1 <?php
2
3 namespace Drupal\Tests\comment\Kernel\Migrate\d6;
4
5 use Drupal\field\Entity\FieldStorageConfig;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
7
8 /**
9  * Upgrade comment variables to field.storage.node.comment.yml.
10  *
11  * @group migrate_drupal_6
12  */
13 class MigrateCommentVariableFieldTest extends MigrateDrupal6TestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public static $modules = ['comment', 'menu_ui'];
19
20   /**
21    * {@inheritdoc}
22    */
23   protected function setUp() {
24     parent::setUp();
25     $this->installConfig(['comment']);
26     $this->migrateContentTypes();
27     $this->executeMigrations(['d6_comment_type', 'd6_comment_field']);
28   }
29
30   /**
31    * Tests comment variables migrated into a field entity.
32    */
33   public function testCommentField() {
34     $this->assertTrue(is_object(FieldStorageConfig::load('node.comment')));
35   }
36
37 }