You are here

protected function InstallerSkipPermissionHardeningTest::prepareEnvironment in Drupal 10

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

Class

InstallerSkipPermissionHardeningTest
Verifies that the installer skipped permission hardening.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function prepareEnvironment() {
  parent::prepareEnvironment();
  $this->settings['settings']['skip_permissions_hardening'] = (object) [
    'value' => TRUE,
    'required' => TRUE,
  ];
}