You are here

protected function BooleanFieldTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php \Drupal\Tests\field\Functional\Boolean\BooleanFieldTest::setUp()
  2. 9 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',
  ]));
}