function MigrateCommentFieldTest::testMigration

Same name in this branch
  1. 8.9.x core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldTest::testMigration()
Same name in other branches
  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()
  3. 10 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentFieldTest::testMigration()
  4. 10 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldTest::testMigration()
  5. 11.x core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentFieldTest::testMigration()
  6. 11.x 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/d6/MigrateCommentFieldTest.php, line 50

Class

MigrateCommentFieldTest
Tests the migration of comment fields from Drupal 6.

Namespace

Drupal\Tests\comment\Kernel\Migrate\d6

Code

public function testMigration() {
    $this->assertEntity('comment_node_article');
    $this->assertEntity('comment_node_company');
    $this->assertEntity('comment_node_employee');
    $this->assertEntity('comment_node_event');
    $this->assertEntity('comment_forum');
    $this->assertEntity('comment_node_page');
    $this->assertEntity('comment_node_sponsor');
    $this->assertEntity('comment_node_story');
    $this->assertEntity('comment_node_test_event');
    $this->assertEntity('comment_node_test_page');
    $this->assertEntity('comment_node_test_planet');
    $this->assertEntity('comment_node_test_story');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.