protected function assertEntity(string
$id, string
$label): void
{ $entity = CommentType::
load($id);
$this->
assertInstanceOf(CommentType::
class,
$entity);
$this->
assertSame($label,
$entity->
label());
$this->
assertSame('node',
$entity->
getTargetEntityTypeId());
} /**
* Tests the migrated comment types.
*/
public function testMigration() { $this->
migrateCommentTypes();
$comment_fields =
[ 'comment' => 'Default comment setting',
'comment_default_mode' => 'Default display mode',
'comment_default_per_page' => 'Default comments per page',
'comment_anonymous' => 'Anonymous commenting',
'comment_subject_field' => 'Comment subject field',
'comment_preview' => 'Preview comment',
'comment_form_location' => 'Location of comment submission form',
];
foreach ($comment_fields as $field =>
$description) {