'access administration pages',
'administer permissions',
]);
$this->
drupalLogin($admin_user);
// Add a language. The Afrikaans translation file of locale_test_translate
// (test.af.po) has been prepared with a configuration translation.
ConfigurableLanguage::
createFromLangcode('af'
)->
save();
// Enable locale module.
$this->container->
get('module_installer'
)->
install(['locale'
]);
$this->
resetAll();
// Enable import of translations. By default this is disabled for automated
// tests.
$this->
config('locale.settings'
) ->
set('translation.import_enabled', TRUE
) ->
set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL
) ->
save();
// Add translation permissions now that the locale module has been enabled.
$edit =
[ 'authenticated[translate interface]' => 'translate interface',
];