protected function LanguageNegotiationInfoTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php \Drupal\Tests\language\Functional\LanguageNegotiationInfoTest::setUp()
- 9 core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php \Drupal\Tests\language\Functional\LanguageNegotiationInfoTest::setUp()
File
- core/
modules/ language/ tests/ src/ Functional/ LanguageNegotiationInfoTest.php, line 32
Class
- LanguageNegotiationInfoTest
- Tests alterations to language types/negotiation info.
Namespace
Drupal\Tests\language\FunctionalCode
protected function setUp() : void {
parent::setUp();
$admin_user = $this
->drupalCreateUser([
'administer languages',
'access administration pages',
'view the administration theme',
'administer modules',
]);
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/config/regional/language/add');
$this
->submitForm([
'predefined_langcode' => 'it',
], 'Add language');
}