Skip to content
Snippets Groups Projects
Verified Commit 09d7cff7 authored by Dave Long's avatar Dave Long
Browse files

Issue #3394450 by larowlan: Improve the failure message from...

Issue #3394450 by larowlan: Improve the failure message from Drupal\KernelTests\Core\DependencyInjection\AutowireTest

(cherry picked from commit 2402f97b)
parent 4280bf15
Branches
No related tags found
Loading
Checking pipeline status
......@@ -110,7 +110,9 @@ public function testCoreServiceAliases(): void {
}
}
$this->assertSame($expected, array_intersect($expected, $aliases));
$missing = array_diff($expected, $aliases);
$formatted = Yaml::encode(array_map(fn ($alias) => sprintf('@%s', $alias), $missing));
$this->assertSame($expected, array_intersect($expected, $aliases), sprintf('The following core services do not have map the class name to an alias. Add the following to core.services.yml in the appropriate place: %s%s%s', \PHP_EOL, \PHP_EOL, $formatted));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment