function InstallerExistingConfigTest::setUpLanguage
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest::setUpLanguage()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest::setUpLanguage()
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest::setUpLanguage()
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.