You are here

public function MigrateCommentFieldTest::testMigration in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Tests/Migrate/d7/MigrateCommentFieldTest.php \Drupal\comment\Tests\Migrate\d7\MigrateCommentFieldTest::testMigration()

Tests the migrated fields.

File

core/modules/comment/src/Tests/Migrate/d7/MigrateCommentFieldTest.php, line 57
Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentFieldTest.

Class

MigrateCommentFieldTest
Tests creation of comment reference fields for each comment type defined in Drupal 7.

Namespace

Drupal\comment\Tests\Migrate\d7

Code

public function testMigration() {
  $this
    ->assertEntity('node.comment_node_page', 'comment_node_page');
  $this
    ->assertEntity('node.comment_node_article', 'comment_node_article');
  $this
    ->assertEntity('node.comment_node_blog', 'comment_node_blog');
  $this
    ->assertEntity('node.comment_node_book', 'comment_node_book');
  $this
    ->assertEntity('node.comment_node_forum', 'comment_node_forum');
  $this
    ->assertEntity('node.comment_node_test_content_type', 'comment_node_test_content_type');
}