function LanguageNegotiationInfoTest::setUp
Same name in other branches
- 8.9.x core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php \Drupal\Tests\language\Functional\LanguageNegotiationInfoTest::setUp()
- 10 core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php \Drupal\Tests\language\Functional\LanguageNegotiationInfoTest::setUp()
- 11.x core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php \Drupal\Tests\language\Functional\LanguageNegotiationInfoTest::setUp()
Overrides BrowserTestBase::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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.