You are here

protected function LanguageNegotiationInfoTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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\Functional

Code

protected function setUp() {
  parent::setUp();
  $admin_user = $this
    ->drupalCreateUser([
    'administer languages',
    'access administration pages',
    'view the administration theme',
    'administer modules',
  ]);
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalPostForm('admin/config/regional/language/add', [
    'predefined_langcode' => 'it',
  ], t('Add language'));
}