3 namespace Drupal\Tests\comment\Kernel\Migrate\d6;
5 use Drupal\Core\Entity\Entity\EntityFormDisplay;
8 * Upgrade comment variables to core.entity_form_display.node.*.default.yml.
10 * @group migrate_drupal_6
12 class MigrateCommentVariableEntityFormDisplayTest extends MigrateCommentVariableDisplayBase {
17 public static $modules = ['menu_ui'];
22 protected function setUp() {
24 $this->executeMigration('d6_comment_entity_form_display');
28 * Tests comment variables migrated into an entity display.
30 public function testCommentEntityFormDisplay() {
31 foreach (['page', 'article', 'story'] as $type) {
32 $component = EntityFormDisplay::load('node.' . $type . '.default')
33 ->getComponent('comment');
34 $this->assertIdentical('comment_default', $component['type']);
35 $this->assertIdentical(20, $component['weight']);