function EmailFieldTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/field/tests/src/Functional/Email/EmailFieldTest.php, line 46

Class

EmailFieldTest
Tests email field functionality.

Namespace

Drupal\Tests\field\Functional\Email

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalLogin($this->drupalCreateUser([
        'view test entity',
        'administer entity_test content',
        'administer content types',
    ]));
}

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