function EntityTypeWithoutLanguageFormTest::setUp

Same name in other branches
  1. 9 core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php \Drupal\Tests\language\Functional\EntityTypeWithoutLanguageFormTest::setUp()
  2. 8.9.x core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php \Drupal\Tests\language\Functional\EntityTypeWithoutLanguageFormTest::setUp()
  3. 10 core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php \Drupal\Tests\language\Functional\EntityTypeWithoutLanguageFormTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php, line 36

Class

EntityTypeWithoutLanguageFormTest
Tests entity type without language support.

Namespace

Drupal\Tests\language\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create and log in administrative user.
    $admin_user = $this->drupalCreateUser([
        'administer languages',
    ]);
    $this->drupalLogin($admin_user);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.