$this->
assertNull(FieldConfig::
load('node.article.field_text_plain_filtered'
));
$this->
assertNull(FieldConfig::
load('node.page.field_text_long_plain_filtered'
));
$this->
assertNull(FieldConfig::
load('node.article.field_text_long_plain_filtered'
));
$this->
assertNull(FieldConfig::
load('node.page.field_text_sum_plain_filtered'
));
$this->
assertNull(FieldConfig::
load('node.article.field_text_sum_plain_filtered'
));
// For each text field instances that were skipped, there should be a log
// message with the required steps to fix this.
$migration =
$this->
getMigration('d7_field_instance'
);
$errors =
array_map(function D
$message) { return $message->message;
},
iterator_to_array($migration->
getIdMap()->
getMessages()));
$this->
assertCount(8,
$errors);
sort($errors);
$message = 'd7_field_instance:type: Can\'t migrate source field field_text_long_plain_filtered configured with both plain text and filtered text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text';
$this->
assertEquals($errors[0
],
$message);
$this->
assertEquals($errors[1
],
$message);
$message = 'd7_field_instance:type: Can\'t migrate source field field_text_plain_filtered configured with both plain text and filtered text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text';
$this->
assertEquals($errors[2
],
$message);
$this->
assertEquals($errors[3
],
$message);
$message = 'd7_field_instance:type: Can\'t migrate source field field_text_sum_plain of type text_with_summary configured with plain text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text';
$this->
assertEquals($errors[4
],
$message);
$this->
assertEquals($errors[5
],
$message);