public function MigrateCommentVariableEntityFormDisplayTest::testCommentEntityFormDisplay in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Tests/Migrate/d6/MigrateCommentVariableEntityFormDisplayTest.php \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityFormDisplayTest::testCommentEntityFormDisplay()
Tests comment variables migrated into an entity display.
File
- core/
modules/ comment/ src/ Tests/ Migrate/ d6/ MigrateCommentVariableEntityFormDisplayTest.php, line 30 - Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityFormDisplayTest.
Class
- MigrateCommentVariableEntityFormDisplayTest
- Upgrade comment variables to core.entity_form_display.node.*.default.yml.
Namespace
Drupal\comment\Tests\Migrate\d6Code
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']);
}
}