MigrateCommentVariableEntityFormDisplayTest.php in Zircon Profile 8
File
core/modules/comment/src/Tests/Migrate/d6/MigrateCommentVariableEntityFormDisplayTest.php
View source
<?php
namespace Drupal\comment\Tests\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
class MigrateCommentVariableEntityFormDisplayTest extends MigrateCommentVariableDisplayBase {
protected function setUp() {
parent::setUp();
$this
->executeMigration('d6_comment_entity_form_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']);
}
}
}