You are here

protected function SiteNameTest::installParameters in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/SiteNameTest.php \Drupal\FunctionalTests\Installer\SiteNameTest::installParameters()
  2. 9 core/tests/Drupal/FunctionalTests/Installer/SiteNameTest.php \Drupal\FunctionalTests\Installer\SiteNameTest::installParameters()

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

Return value

array Array of parameters for use in install_drupal().

Overrides FunctionalTestSetupTrait::installParameters

See also

install_drupal()

install_state_defaults()

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\Installer

Code

protected function installParameters() {
  $this->siteName = $this
    ->randomMachineName();
  $parameters = parent::installParameters();
  $parameters['forms']['install_configure_form']['site_name'] = $this->siteName;
  return $parameters;
}