function DistributionProfileTranslationTest::setUpSettings

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

Overrides InstallerTestBase::setUpSettings

File

core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php, line 82

Class

DistributionProfileTranslationTest
Tests distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpSettings() {
    // The language should have been automatically detected, all following
    // screens should be translated already.
    $this->assertSession()
        ->buttonExists('Save and continue de');
    $this->translations['Save and continue'] = 'Save and continue de';
    // Check the language direction.
    $this->assertSession()
        ->elementTextEquals('xpath', '/@dir', 'ltr');
    // Verify that the distribution name appears.
    $this->assertSession()
        ->pageTextContains($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::setUpSettings();
}

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