You are here

protected function UmamiMultilingualInstallTest::setUpLanguage in Drupal 8

Same name and namespace in other branches
  1. 9 core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php \Drupal\Tests\demo_umami\Functional\UmamiMultilingualInstallTest::setUpLanguage()

Installer step: Select language.

Overrides InstallerTestBase::setUpLanguage

File

core/profiles/demo_umami/tests/src/Functional/UmamiMultilingualInstallTest.php, line 35

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