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