$this->
drupalLogin($this->
createUser([ 'access administration pages',
'view the administration theme',
'administer permissions',
]));
} /**
* {@inheritdoc}
*/
protected function installParameters() { $parameters = parent::
installParameters();
// Install in German. This will ensure the language and locale modules are
// installed.
$parameters['parameters'
]['langcode'
] = 'de';
// Create a po file so we don't attempt to download one from
// localize.drupal.org and to have a test translation that will not change.
\Drupal::
service('file_system'
)->
mkdir($this->publicFilesDirectory . '/translations', NULL, TRUE
);
$contents = <<<ENDPO
msgid ""
msgstr ""
msgid "ABC Help Test module"
msgstr "ABC-Hilfetestmodul"
msgid "Test translation."
msgstr "Übersetzung testen."
msgid "Non-word-item to translate."
msgstr "Non-word-german sdfwedrsdf."