protected function InstallerExistingConfigTest::setUpLanguage in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest::setUpLanguage()
Installer step: Select language.
Overrides InstallerTestBase::setUpLanguage
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigTest.php, line 15
Class
- InstallerExistingConfigTest
- Verifies that installing from existing configuration works.
Namespace
Drupal\FunctionalTests\InstallerCode
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();
}