Issue #3283035 by bruno.bicudo, Spokje, _pratik_, longwave, joachim, xjm,...
Issue #3283035 by bruno.bicudo, Spokje, _pratik_, longwave, joachim, xjm, smustgrave: Exceptions from errors in services.yml files should tell you which file
Changes for core/tests/Drupal/Tests/Core/DependencyInjection/YamlFileLoaderTest.php: 6 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -169,6 +169,12 @@ public function providerTestExceptions() {
YAML,
'A service definition must be an array or a string starting with "@" but string found for service "service" in vfs://drupal/modules/example/example.yml. Check your YAML syntax.',
],
'YAML must be valid'=>[<<<YAML
do not:
do this for the love of Foo Bar!
YAML,
'The file "vfs://drupal/modules/example/example.yml" does not contain valid YAML',