public function MigrateCommentFieldInstanceTest::testMigration in Drupal 8
Same name in this branch
- 8 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentFieldInstanceTest::testMigration()
- 8 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldInstanceTest::testMigration()
Same name and namespace in other branches
- 9 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentFieldInstanceTest::testMigration()
Tests the migrated fields.
File
- core/
modules/ comment/ tests/ src/ Kernel/ Migrate/ d7/ MigrateCommentFieldInstanceTest.php, line 73
Class
- MigrateCommentFieldInstanceTest
- Tests the migration of comment field instances from Drupal 7.
Namespace
Drupal\Tests\comment\Kernel\Migrate\d7Code
public function testMigration() {
$this
->assertEntity('page', 'comment_node_page', 0, 1, 50, 0, TRUE, 1);
$this
->assertEntity('article', 'comment_node_article', 2, 1, 50, 0, TRUE, 1);
$this
->assertEntity('blog', 'comment_node_blog', 2, 1, 50, 0, TRUE, 1);
$this
->assertEntity('book', 'comment_node_book', 2, 1, 50, 0, TRUE, 1);
$this
->assertEntity('forum', 'comment_forum', 2, 1, 50, 0, TRUE, 1);
$this
->assertEntity('test_content_type', 'comment_node_test_content_type', 2, 1, 30, 0, TRUE, 1);
$this
->assertEntity('et', 'comment_node_et', 2, 1, 50, 0, FALSE, 1);
}