diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php index 8496b115dd..67c769a69d 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php @@ -129,6 +129,19 @@ protected function translatePostValues(array $values) { * An array of modules that will not be upgraded. */ protected function assertUpgradePaths(WebAssert $session, array $available_paths, array $missing_paths) { + // Ensure that all available/missing are modules and not install profiles. + $system_info = system_get_info('module'); + foreach ($available_paths as $available) { + if (isset($system_info[$available])) { + $this->assertEquals('module', $system_info[$available]['type']); + } + } + foreach ($missing_paths as $missing) { + if (isset($system_info[$missing])) { + $this->assertEquals('module', $system_info[$missing]['type']); + } + } + // Test the available migration paths. foreach ($available_paths as $available) { $session->elementExists('xpath', "//span[contains(@class, 'checked') and text() = '$available']");