function SiteNameTest::installParameters

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

Overrides FunctionalTestSetupTrait::installParameters

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;
}

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