You are here

protected function InstallerExistingConfigTest::setUpLanguage in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest::setUpLanguage()

Installer step: Select language.

Overrides InstallerTestBase::setUpLanguage

See also

\Drupal\Core\Installer\Form\SelectLanguageForm

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php, line 15

Class

InstallerExistingConfigTest
Verifies that installing from existing configuration works.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpLanguage() {

  // Place a custom local translation in the translations directory.
  mkdir($this->root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
  file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.fr.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Enregistrer et continuer\"");
  parent::setUpLanguage();
}