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