protected function SiteNameTest::installParameters in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/SiteNameTest.php \Drupal\FunctionalTests\Installer\SiteNameTest::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
See also
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ SiteNameTest.php, line 29
Class
- SiteNameTest
- Tests that the site name can be set during a non-interactive installation.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function installParameters() {
$this->siteName = $this
->randomMachineName();
$parameters = parent::installParameters();
$parameters['forms']['install_configure_form']['site_name'] = $this->siteName;
return $parameters;
}