You are here

public function MigrateCommentFieldTest::testMigration in Drupal 9

Same name in this branch
  1. 9 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentFieldTest::testMigration()
  2. 9 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldTest::testMigration()
Same name and namespace in other branches
  1. 8 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldTest::testMigration()

Tests the migrated comment fields.

File

core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php, line 47

Class

MigrateCommentFieldTest
Tests the migration of comment fields from Drupal 7.

Namespace

Drupal\Tests\comment\Kernel\Migrate\d7

Code

public function testMigration() {
  $this
    ->assertEntity('comment_node_page');
  $this
    ->assertEntity('comment_node_article');
  $this
    ->assertEntity('comment_node_blog');
  $this
    ->assertEntity('comment_node_book');
  $this
    ->assertEntity('comment_forum');
  $this
    ->assertEntity('comment_node_test_content_type');
  $this
    ->assertEntity('comment_node_et');
}