function InstallerSiteConfigProfileTest::installParameters

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::installParameters()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::installParameters()
  3. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::installParameters()
  4. main core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::installParameters()

Returns the parameters that will be used when Simpletest installs Drupal.

Return value

array Array of parameters for use in install_drupal().

Overrides FunctionalTestSetupTrait::installParameters

File

core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php, line 40

Class

InstallerSiteConfigProfileTest
Verifies that the installer defaults to the existing site email address and timezone, if they were provided by the install profile.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function installParameters() {
  $parameters = parent::installParameters();
  // Don't override the site email address, allowing it to default to the one
  // from our install profile.
  unset($parameters['forms']['install_configure_form']['site_mail']);
  return $parameters;
}

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