You are here

protected function InstallerTest::setUpLanguage in Drupal 9

Same name and namespace in other branches
  1. 8 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 51

Class

InstallerTest
Tests the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpLanguage() {

  // Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets and
  // metatags as expected to the first page of the installer.
  $this
    ->assertSession()
    ->responseContains("core/themes/seven/css/components/buttons.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();
}