function ContentTranslationEntityBundleUITest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/content_translation/tests/src/Functional/ContentTranslationEntityBundleUITest.php, line 30

Class

ContentTranslationEntityBundleUITest
Tests the content translation behaviors on entity bundle UI.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $user = $this->drupalCreateUser([
        'access administration pages',
        'administer languages',
        'administer content translation',
        'administer content types',
    ]);
    $this->drupalLogin($user);
}

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