/**
* Tests all migrations with ID conflicts.
*/
public function testAllMigrationsWithIdConflicts() { // Get all Drupal 6 migrations.
$migrations =
$this->container
->
get('plugin.manager.migration'
) ->
createInstancesByTag('Drupal 6'
);
// Create content.
$this->
createContent();
// Audit the IDs of all migrations. There should be conflicts since content
// has been created.
$conflicts =
array_map( function DAuditResult
$result) { return $result->
passed() ? NULL :
$result->
getMigration()->
getBaseId();
},
(new IdAuditor())->
auditMultiple($migrations) );
$expected =
[