You are here

protected function MultipleDistributionsProfileTest::setUpLanguage in Drupal 10

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

Installer step: Select language.

Overrides InstallerTestBase::setUpLanguage

See also

\Drupal\Core\Installer\Form\SelectLanguageForm

File

core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php, line 56

Class

MultipleDistributionsProfileTest
Tests multiple distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpLanguage() {

  // Verify that the distribution name appears.
  $this
    ->assertSession()
    ->pageTextContains('distribution_one');

  // Verify that the requested theme is used.
  $this
    ->assertSession()
    ->responseContains('claro');

  // Verify that the "Choose profile" step does not appear.
  $this
    ->assertSession()
    ->pageTextNotContains('profile');
  parent::setUpLanguage();
}