3 namespace Drupal\Tests\comment\Kernel\Migrate\d6;
5 use Drupal\comment\Entity\CommentType;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
9 * Upgrade comment type.
11 * @group migrate_drupal_6
13 class MigrateCommentTypeTest extends MigrateDrupal6TestBase {
18 public static $modules = ['comment'];
23 protected function setUp() {
25 $this->installEntitySchema('node');
26 $this->installEntitySchema('comment');
27 $this->installConfig(['node', 'comment']);
28 $this->executeMigration('d6_comment_type');
32 * Tests the Drupal 6 to Drupal 8 comment type migration.
34 public function testCommentType() {
35 $comment_type = CommentType::load('comment');
36 $this->assertIdentical('node', $comment_type->getTargetEntityTypeId());
37 $comment_type = CommentType::load('comment_no_subject');
38 $this->assertIdentical('node', $comment_type->getTargetEntityTypeId());