function InstallerTranslationNonStandardFilenamesTest::prepareSettings

Same name in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationNonStandardFilenamesTest::prepareSettings()

Overrides FunctionalTestSetupTrait::prepareSettings

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php, line 30

Class

InstallerTranslationNonStandardFilenamesTest
Tests non-standard named translation files get imported during install.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function prepareSettings() {
    parent::prepareSettings();
    $settings['config']['locale.settings']['translation']['default_filename'] = (object) [
        'value' => '%project.%language.po',
        'required' => TRUE,
    ];
    $settings['config']['locale.settings']['translation']['default_server_pattern'] = (object) [
        'value' => 'translations://%project.%language.po',
        'required' => TRUE,
    ];
    $this->writeSettings($settings);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.