function InstallerTestBase::setUpLanguage

Installer step: Select language.

See also

\Drupal\Core\Installer\Form\SelectLanguageForm

13 calls to InstallerTestBase::setUpLanguage()
ConfigTranslationInstallTest::setUpLanguage in core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
DistributionProfileExistingSettingsTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php
DistributionProfileTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php
InstallerExistingConfigTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php
InstallerExistingInstallationTest::testInstaller in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingInstallationTest.php
Tests that Drupal fails to install when there is an existing installation.

... See full list

15 methods override InstallerTestBase::setUpLanguage()
ConfigTranslationInstallTest::setUpLanguage in core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
DistributionProfileExistingSettingsTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php
DistributionProfileTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php
DistributionProfileTranslationQueryTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php
DistributionProfileTranslationTest::setUpLanguage in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php

... See full list

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php, line 234

Class

InstallerTestBase
Base class for testing the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpLanguage() {
  $edit = [
    'langcode' => $this->langcode,
  ];
  // The 'Select Language' step is always English.
  $this->submitForm($edit, 'Save and continue');
}

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