function InstallerTestBase::setUpLanguage

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

Installer step: Select language.

See also

\Drupal\Core\Installer\Form\SelectLanguageForm

2 methods override InstallerTestBase::setUpLanguage()
ConfigTranslationInstallTest::setUpLanguage in core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
Installer step: Select language.
UmamiMultilingualInstallTest::setUpLanguage in core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php
Installer step: Select language.

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.