You are here

public function MigrateCommentVariableEntityFormDisplaySubjectTest::testCommentEntityFormDisplay in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/Migrate/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityFormDisplaySubjectTest::testCommentEntityFormDisplay()

Tests comment subject variable migrated into an entity display.

File

core/modules/comment/src/Tests/Migrate/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php, line 40
Contains \Drupal\comment\Tests\Migrate\d6\MigrateCommentVariableEntityFormDisplaySubjectTest.

Class

MigrateCommentVariableEntityFormDisplaySubjectTest
Upgrade comment subject variable to core.entity_form_display.comment.*.default.yml

Namespace

Drupal\comment\Tests\Migrate\d6

Code

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);
}