Unverified Commit 40dabffe authored by larowlan's avatar larowlan
Browse files

Issue #3204461 by quietone, larowlan: Avoid error from sort in ValidateMigrationStateTestTrait

parent 30e300fe
......@@ -90,10 +90,12 @@ public function testMigrationState() {
return $value . '/migrations/state/';
}, \Drupal::moduleHandler()->getModuleDirectories())))->findAll();
$declared = [];
$states = [MigrationState::FINISHED, MigrationState::NOT_FINISHED];
$declared = [
MigrationState::FINISHED => [],
MigrationState::NOT_FINISHED => [],
];
foreach ($system_info as $module => $info) {
foreach ($states as $state) {
foreach (array_keys($declared) as $state) {
if (isset($info[$state][$version])) {
foreach ($info[$state][$version] as $source => $destination) {
// Do not add the source module i18nstrings or i18_string. The
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment