You are here

protected function InstallerExistingConfigNoSystemSiteTest::prepareEnvironment in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoSystemSiteTest::prepareEnvironment()
  2. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoSystemSiteTest::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 InstallerExistingConfigTestBase::prepareEnvironment

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php, line 15

Class

InstallerExistingConfigNoSystemSiteTest
Testing installing from config without system.site.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function prepareEnvironment() {
  parent::prepareEnvironment();

  // File API functions are not available yet.
  unlink($this->siteDirectory . '/profiles/' . $this->profile . '/config/sync/system.site.yml');
}