function DistributionProfileTest::setUpLanguage
Installer step: Select language.
Overrides InstallerTestBase::setUpLanguage
File
- 
              core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileTest.php, line 52  
Class
- DistributionProfileTest
 - Tests distribution profile support.
 
Namespace
Drupal\FunctionalTests\InstallerCode
protected function setUpLanguage() {
  // Verify that the distribution name appears.
  $this->assertSession()
    ->pageTextContains($this->info['distribution']['name']);
  // Verify that the distribution name is used in the site title.
  $this->assertSession()
    ->titleEquals('Choose language | ' . $this->info['distribution']['name']);
  // Verify that the requested theme is used.
  $this->assertSession()
    ->responseContains($this->info['distribution']['install']['theme']);
  // 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.