function FieldUITest::setUp

Same name in this branch
  1. 10 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
Same name in other branches
  1. 9 core/modules/field/tests/src/Functional/Views/FieldUITest.php \Drupal\Tests\field\Functional\Views\FieldUITest::setUp()
  2. 9 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
  3. 8.9.x core/modules/field/tests/src/Functional/Views/FieldUITest.php \Drupal\Tests\field\Functional\Views\FieldUITest::setUp()
  4. 8.9.x core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
  5. 11.x core/modules/field/tests/src/Functional/Views/FieldUITest.php \Drupal\Tests\field\Functional\Views\FieldUITest::setUp()
  6. 11.x core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\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 handler.

Namespace

Drupal\Tests\field\Functional\Views

Code

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

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