function MultipleDistributionsProfileTest::setUpLanguage

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php \Drupal\FunctionalTests\Installer\MultipleDistributionsProfileTest::setUpLanguage()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php \Drupal\FunctionalTests\Installer\MultipleDistributionsProfileTest::setUpLanguage()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php \Drupal\FunctionalTests\Installer\MultipleDistributionsProfileTest::setUpLanguage()

Overrides InstallerTestBase::setUpLanguage

File

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

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

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