// All text, text_long and text_with_summary field bases that have both
// plain text and filtered text instances should not have been migrated.
$this->
assertNull(FieldStorageConfig::
load('node.field_text_plain_filtered'
));
$this->
assertNull(FieldStorageConfig::
load('node.field_text_long_plain_filtered'
));
$this->
assertNull(FieldStorageConfig::
load('node.field_text_sum_plain_filtered'
));
// For each text field bases that were skipped, there should be a log
// message with the required steps to fix this.
$migration =
$this->
getMigration('d7_field'
);
$errors =
array_map(function D
$message) { return $message->message;
},
iterator_to_array($migration->
getIdMap()->
getMessages()));
sort($errors);
$this->
assertCount(4,
$errors);
$this->
assertEquals('d7_field: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',
$errors[0
]);
$this->
assertEquals('d7_field: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',
$errors[1
]);
$this->
assertEquals('d7_field: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',
$errors[2
]);
$this->
assertEquals('d7_field:type: Can\'t migrate source field field_text_sum_plain_filtered 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',
$errors[3
]);
} /**
* Tests migrating D7 datetime fields.
*/