function BooleanFieldTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php, line 51

Class

BooleanFieldTest
Tests boolean field functionality.

Namespace

Drupal\Tests\field\Functional\Boolean

Code

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

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