You are here

protected function FieldUITest::setUp in Drupal 9

Same name in this branch
  1. 9 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
  2. 9 core/modules/field/tests/src/Functional/Views/FieldUITest.php \Drupal\Tests\field\Functional\Views\FieldUITest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/Views/FieldUITest.php \Drupal\Tests\field\Functional\Views\FieldUITest::setUp()

Overrides FieldTestBase::setUp

File

core/modules/field/tests/src/Functional/Views/FieldUITest.php, line 46

Class

FieldUITest
Tests the UI of the field field handler.

Namespace

Drupal\Tests\field\Functional\Views

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this->account = $this
    ->drupalCreateUser([
    'administer views',
  ]);
  $this
    ->drupalLogin($this->account);
  $this
    ->setUpFieldStorages(1, 'text');
  $this
    ->setUpFields();
}