->
save();
} // Set up an admin user with appropriate permissions.
$admin_user =
$this->
drupalCreateUser([ 'view own unpublished content',
'administer languages',
'administer content types',
'access administration pages',
'create page content',
'edit own page content',
]);
$this->
drupalLogin($admin_user);
$config =
$this->
config('language.types'
);
$config->
set('configurable',
[LanguageInterface::TYPE_INTERFACE
]);
$config->
set('negotiation.language_content.enabled',
[ LanguageNegotiationUrl::METHOD_ID => 1,
LanguageNegotiationSelected::METHOD_ID => 1,
]);
$config->
save();
\Drupal::
configFactory()->
getEditable('language.negotiation'
) ->
set('url.prefixes.aa', 'aa'
)