function NumberFieldTest::setUp

Same name in this branch
  1. 8.9.x core/modules/field/tests/src/Functional/Number/NumberFieldTest.php \Drupal\Tests\field\Functional\Number\NumberFieldTest::setUp()
Same name in other branches
  1. 9 core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php \Drupal\Tests\field\FunctionalJavascript\Number\NumberFieldTest::setUp()
  2. 9 core/modules/field/tests/src/Functional/Number/NumberFieldTest.php \Drupal\Tests\field\Functional\Number\NumberFieldTest::setUp()
  3. 10 core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php \Drupal\Tests\field\FunctionalJavascript\Number\NumberFieldTest::setUp()
  4. 10 core/modules/field/tests/src/Functional/Number/NumberFieldTest.php \Drupal\Tests\field\Functional\Number\NumberFieldTest::setUp()
  5. 11.x core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php \Drupal\Tests\field\FunctionalJavascript\Number\NumberFieldTest::setUp()
  6. 11.x 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/FunctionalJavascript/Number/NumberFieldTest.php, line 30

Class

NumberFieldTest
Tests the numeric field widget.

Namespace

Drupal\Tests\field\FunctionalJavascript\Number

Code

protected function setUp() {
    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',
    ]));
}

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