diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableDisplayBase.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableDisplayBase.php deleted file mode 100644 index 964185b589..0000000000 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableDisplayBase.php +++ /dev/null @@ -1,31 +0,0 @@ -installConfig(['comment']); - $this->migrateContentTypes(); - $this->executeMigrations([ - 'd6_comment_type', - 'd6_comment_field', - 'd6_comment_field_instance', - ]); - } - -} diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityDisplayTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityDisplayTest.php deleted file mode 100644 index a98c374bed..0000000000 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityDisplayTest.php +++ /dev/null @@ -1,41 +0,0 @@ -executeMigration('d6_comment_entity_display'); - } - - /** - * Tests comment variables migrated into an entity display. - */ - public function testCommentEntityDisplay() { - foreach (['page', 'story', 'article'] as $type) { - $component = EntityViewDisplay::load('node.' . $type . '.default')->getComponent('comment'); - $this->assertIdentical('hidden', $component['label']); - $this->assertIdentical('comment_default', $component['type']); - $this->assertIdentical(20, $component['weight']); - } - } - -} diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php deleted file mode 100644 index 6e74bb9949..0000000000 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php +++ /dev/null @@ -1,47 +0,0 @@ -installConfig(['comment']); - $this->executeMigrations([ - 'd6_comment_type', - 'd6_comment_entity_form_display_subject', - ]); - } - - /** - * Tests comment subject variable migrated into an entity display. - */ - public function testCommentEntityFormDisplay() { - $component = EntityFormDisplay::load('comment.comment.default') - ->getComponent('subject'); - $this->assertIdentical('string_textfield', $component['type']); - $this->assertIdentical(10, $component['weight']); - $component = EntityFormDisplay::load('comment.comment_no_subject.default') - ->getComponent('subject'); - $this->assertNull($component); - } - -} diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityFormDisplayTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityFormDisplayTest.php deleted file mode 100644 index e7432ca107..0000000000 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableEntityFormDisplayTest.php +++ /dev/null @@ -1,41 +0,0 @@ -executeMigration('d6_comment_entity_form_display'); - } - - /** - * Tests comment variables migrated into an entity display. - */ - public function testCommentEntityFormDisplay() { - foreach (['page', 'article', 'story'] as $type) { - $component = EntityFormDisplay::load('node.' . $type . '.default') - ->getComponent('comment'); - $this->assertIdentical('comment_default', $component['type']); - $this->assertIdentical(20, $component['weight']); - } - } - -} diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableFieldTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableFieldTest.php deleted file mode 100644 index 74169b084b..0000000000 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableFieldTest.php +++ /dev/null @@ -1,39 +0,0 @@ -installConfig(['comment']); - $this->migrateContentTypes(); - $this->executeMigrations(['d6_comment_type', 'd6_comment_field']); - } - - /** - * Tests comment variables migrated into a field entity. - */ - public function testCommentField() { - $this->assertTrue(is_object(FieldStorageConfig::load('node.comment'))); - } - -} diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableInstanceTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableInstanceTest.php deleted file mode 100644 index 5822a86594..0000000000 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentVariableInstanceTest.php +++ /dev/null @@ -1,62 +0,0 @@ -installConfig(['comment']); - $this->migrateContentTypes(); - $this->executeMigrations([ - 'd6_comment_type', - 'd6_comment_field', - 'd6_comment_field_instance', - ]); - } - - /** - * Test the migrated field instance values. - */ - public function testCommentFieldInstance() { - $node = Node::create(['type' => 'page']); - $this->assertIdentical(0, $node->comment->status); - $this->assertIdentical('comment', $node->comment->getFieldDefinition()->getName()); - $settings = $node->comment->getFieldDefinition()->getSettings(); - $this->assertIdentical(CommentManagerInterface::COMMENT_MODE_THREADED, $settings['default_mode']); - $this->assertIdentical(50, $settings['per_page']); - $this->assertFalse($settings['anonymous']); - $this->assertFalse($settings['form_location']); - $this->assertTrue($settings['preview']); - - $node = Node::create(['type' => 'story']); - $this->assertIdentical(2, $node->comment_no_subject->status); - $this->assertIdentical('comment_no_subject', $node->comment_no_subject->getFieldDefinition()->getName()); - $settings = $node->comment_no_subject->getFieldDefinition()->getSettings(); - $this->assertIdentical(CommentManagerInterface::COMMENT_MODE_FLAT, $settings['default_mode']); - $this->assertIdentical(70, $settings['per_page']); - $this->assertTrue($settings['anonymous']); - $this->assertFalse($settings['form_location']); - $this->assertFalse($settings['preview']); - } - -}