You are here

public function MigrateCommentTypeTest::testCommentType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/Migrate/d6/MigrateCommentTypeTest.php \Drupal\comment\Tests\Migrate\d6\MigrateCommentTypeTest::testCommentType()

Tests the Drupal 6 to Drupal 8 comment type migration.

File

core/modules/comment/src/Tests/Migrate/d6/MigrateCommentTypeTest.php, line 39
Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentTypeTest.

Class

MigrateCommentTypeTest
Upgrade comment type.

Namespace

Drupal\comment\Tests\Migrate\d6

Code

public function testCommentType() {
  $comment_type = CommentType::load('comment');
  $this
    ->assertIdentical('node', $comment_type
    ->getTargetEntityTypeId());
  $comment_type = CommentType::load('comment_no_subject');
  $this
    ->assertIdentical('node', $comment_type
    ->getTargetEntityTypeId());
}