function InstallerExistingConfigDirectoryTest::prepareEnvironment

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::prepareEnvironment()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::prepareEnvironment()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigDirectoryTest::prepareEnvironment()

Overrides FunctionalTestSetupTrait::prepareEnvironment

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigDirectoryTest.php, line 27

Class

InstallerExistingConfigDirectoryTest
Tests the installer when a config_directory has already been set up.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function prepareEnvironment() {
    parent::prepareEnvironment();
    mkdir($this->root . DIRECTORY_SEPARATOR . $this->siteDirectory . '/config_read_only', 0444);
    $this->expectedFilePerms = fileperms($this->siteDirectory . '/config_read_only');
    $this->settings['settings']['config_sync_directory'] = (object) [
        'value' => $this->siteDirectory . '/config_read_only',
        'required' => TRUE,
    ];
}

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