protected function DistributionProfileTranslationQueryTest::setUpSettings in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationQueryTest::setUpSettings()
- 9 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationQueryTest::setUpSettings()
Installer step: Configure settings.
Overrides InstallerTestBase::setUpSettings
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ DistributionProfileTranslationQueryTest.php, line 89
Class
- DistributionProfileTranslationQueryTest
- Tests distribution profile support with a 'langcode' query string.
Namespace
Drupal\FunctionalTests\InstallerCode
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.
$direction = $this
->getSession()
->getPage()
->find('xpath', '/@dir')
->getText();
$this
->assertEquals('ltr', $direction);
// 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();
}