executeMigration('d6_comment_entity_display'); } /** * Tests comment variables migrated into an 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']); } } }