You are here

protected function ThunderInstallerGermanTest::visitInstaller in Thunder 6.1.x

Same name and namespace in other branches
  1. 6.2.x tests/src/Functional/Installer/ThunderInstallerGermanTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerGermanTest::visitInstaller()
  2. 6.0.x tests/src/Functional/Installer/ThunderInstallerGermanTest.php \Drupal\Tests\thunder\Functional\Installer\ThunderInstallerGermanTest::visitInstaller()

Visits the interactive installer.

Overrides InstallerTestBase::visitInstaller

File

tests/src/Functional/Installer/ThunderInstallerGermanTest.php, line 34

Class

ThunderInstallerGermanTest
Tests the interactive installer installing the standard profile.

Namespace

Drupal\Tests\thunder\Functional\Installer

Code

protected function visitInstaller() {
  include_once DRUPAL_ROOT . '/core/includes/install.core.inc';
  $version = _install_get_version_info(\Drupal::VERSION)['major'] . '.0.0';

  // Place custom local translations in the translations directory to avoid
  // using the Internet and relying on https://localize.drupal.org/.
  mkdir(DRUPAL_ROOT . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE);
  file_put_contents(DRUPAL_ROOT . '/' . $this->siteDirectory . "/files/translations/drupal-{$version}.{$this->langcode}.po", $this
    ->getPo($this->langcode));
  parent::visitInstaller();
}