function InstallerTest::prepareEnvironment

Prepares the current environment for running the test.

Also sets up new resources for the testing environment, such as the public filesystem and configuration directories.

Overrides FunctionalTestSetupTrait::prepareEnvironment

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php, line 76

Class

InstallerTest
Tests the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function prepareEnvironment() : void {
  parent::prepareEnvironment();
  $settings_services_file = DRUPAL_ROOT . '/sites/default/default.services.yml';
  // Copy the testing-specific service overrides in place.
  copy($settings_services_file, $this->siteDirectory . '/services.yml');
  PerformanceTestRecorder::registerService($this->siteDirectory . '/services.yml', TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.