installConfig(['comment']); $this->executeMigrations([ 'd6_comment_type', 'd6_comment_entity_form_display_subject', ]); } /** * Tests comment subject variable migrated into an entity display. */ 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); } }