You are here

protected function NumberFieldTest::setUp in Drupal 9

Same name in this branch
  1. 9 core/modules/field/tests/src/Functional/Number/NumberFieldTest.php \Drupal\Tests\field\Functional\Number\NumberFieldTest::setUp()
  2. 9 core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php \Drupal\Tests\field\FunctionalJavascript\Number\NumberFieldTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/Number/NumberFieldTest.php \Drupal\Tests\field\Functional\Number\NumberFieldTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/field/tests/src/Functional/Number/NumberFieldTest.php, line 28

Class

NumberFieldTest
Tests the creation of numeric fields.

Namespace

Drupal\Tests\field\Functional\Number

Code

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