protected function UmamiMultilingualInstallTest::setUpLanguage in Drupal 10
Same name and namespace in other branches
- 8 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::setUpLanguage()
- 9 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::setUpLanguage()
File
- core/
profiles/ demo_umami/ tests/ src/ Functional/ UmamiMultilingualInstallTest.php, line 36
Class
- UmamiMultilingualInstallTest
- Tests the multilingual installer installing the Umami profile.
Namespace
Drupal\Tests\demo_umami\FunctionalCode
protected function setUpLanguage() {
// Place custom local translations in the translations directory to avoid
// getting translations from localize.drupal.org.
mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
file_put_contents(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.es.po', $this
->getPo('es'));
parent::setUpLanguage();
}