Commit 148db4be authored by xjm's avatar xjm

Issue #2927476 by Lendude, tstoeckler: Using testing.services.yml in a...

Issue #2927476 by Lendude, tstoeckler: Using testing.services.yml in a kernelTest fatals when trying to copy this to the test site
parent 9f26cfb2
......@@ -324,10 +324,10 @@ public function getDatabasePrefix() {
private function bootKernel() {
$this->setSetting('container_yamls', []);
// Allow for test-specific overrides.
$settings_services_file = $this->root . '/sites/default' . '/testing.services.yml';
$settings_services_file = $this->root . '/sites/default/testing.services.yml';
if (file_exists($settings_services_file)) {
// Copy the testing-specific service overrides in place.
$testing_services_file = $this->root . '/' . $this->siteDirectory . '/services.yml';
$testing_services_file = $this->siteDirectory . '/services.yml';
copy($settings_services_file, $testing_services_file);
$this->setSetting('container_yamls', [$testing_services_file]);
}
......
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