function InstallerTest::setUpLanguage
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpLanguage()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpLanguage()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpLanguage()
Installer step: Select language.
Overrides InstallerTestBase::setUpLanguage
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTest.php, line 57
Class
- InstallerTest
- Tests the interactive installer.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function setUpLanguage() : void {
// Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets and
// metatags as expected to the first page of the installer.
$this->assertSession()
->responseContains("css/components/button.css");
$this->assertSession()
->responseContains('<meta charset="utf-8" />');
// Assert that the expected title is present.
$this->assertEquals('Choose language', $this->cssSelect('main h2')[0]
->getText());
parent::setUpLanguage();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.