Verified Commit c354872a 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 a6196c52
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -101,7 +101,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));
  }

}