Issue #3440837 by sime: Test setup should copy default.settings.php/services.yml from assets
parent
02cc8841c5
commit
f862f883cc
|
@ -78,7 +78,7 @@ trait FunctionalTestSetupTrait {
|
||||||
// installation.
|
// installation.
|
||||||
// Not using File API; a potential error must trigger a PHP warning.
|
// Not using File API; a potential error must trigger a PHP warning.
|
||||||
$directory = DRUPAL_ROOT . '/' . $this->siteDirectory;
|
$directory = DRUPAL_ROOT . '/' . $this->siteDirectory;
|
||||||
copy(DRUPAL_ROOT . '/sites/default/default.settings.php', $directory . '/settings.php');
|
copy(DRUPAL_ROOT . '/core/assets/scaffold/files/default.settings.php', $directory . '/settings.php');
|
||||||
|
|
||||||
// The public file system path is created during installation. Additionally,
|
// The public file system path is created during installation. Additionally,
|
||||||
// during tests:
|
// during tests:
|
||||||
|
@ -136,7 +136,7 @@ trait FunctionalTestSetupTrait {
|
||||||
$settings_services_file = DRUPAL_ROOT . '/' . $this->originalSite . '/testing.services.yml';
|
$settings_services_file = DRUPAL_ROOT . '/' . $this->originalSite . '/testing.services.yml';
|
||||||
if (!file_exists($settings_services_file)) {
|
if (!file_exists($settings_services_file)) {
|
||||||
// Otherwise, use the default services as a starting point for overrides.
|
// Otherwise, use the default services as a starting point for overrides.
|
||||||
$settings_services_file = DRUPAL_ROOT . '/sites/default/default.services.yml';
|
$settings_services_file = DRUPAL_ROOT . '/core/assets/scaffold/files/default.services.yml';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put the testing-specific service overrides in place.
|
// Put the testing-specific service overrides in place.
|
||||||
|
|
Loading…
Reference in New Issue