You are here

protected function UmamiMultilingualInstallTest::setUpLanguage in Drupal 10

Same name and namespace in other branches
  1. 8 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::setUpLanguage()
  2. 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\Functional

Code

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();
}