3 namespace Drupal\Tests\comment\Kernel\Migrate\d6;
5 use Drupal\field\Entity\FieldStorageConfig;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
9 * Upgrade comment variables to field.storage.node.comment.yml.
11 * @group migrate_drupal_6
13 class MigrateCommentVariableFieldTest extends MigrateDrupal6TestBase {
18 public static $modules = ['comment', 'menu_ui'];
23 protected function setUp() {
25 $this->installConfig(['comment']);
26 $this->migrateContentTypes();
27 $this->executeMigrations(['d6_comment_type', 'd6_comment_field']);
31 * Tests comment variables migrated into a field entity.
33 public function testCommentField() {
34 $this->assertTrue(is_object(FieldStorageConfig::load('node.comment')));