function DistributionProfileTest::setUpLanguage

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

Installer step: Select language.

Overrides InstallerTestBase::setUpLanguage

File

core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php, line 54

Class

DistributionProfileTest
Tests distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpLanguage() : void {
  // 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 -- its modifications to this form
  // should be visible.
  $this->assertSession()
    ->pageTextContains('Added by custom installer theme.');
  // Verify the base theme CSS is loaded.
  $this->assertSession()
    ->responseContains("claro/css/theme/install-page.css");
  // 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.