function MigrateDrupal6AuditIdsTest::testAllMigrationsWithNoIdConflicts
Tests all migrations with no ID conflicts.
File
- 
              core/modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6AuditIdsTest.php, line 103 
Class
- MigrateDrupal6AuditIdsTest
- Tests the migration auditor for ID conflicts.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6Code
public function testAllMigrationsWithNoIdConflicts() : void {
  $migrations = $this->container
    ->get('plugin.manager.migration')
    ->createInstancesByTag('Drupal 6');
  // Audit all Drupal 6 migrations that support it. There should be no
  // conflicts since no content has been created.
  $results = (new IdAuditor())->auditMultiple($migrations);
  /** @var \Drupal\migrate\Audit\AuditResult $result */
  foreach ($results as $result) {
    $this->assertInstanceOf(AuditResult::class, $result);
    $this->assertTrue($result->passed());
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
