function FieldTypeCategoriesIntegrationTest::setUp

Same name in other branches
  1. 10 core/modules/field_ui/tests/src/Functional/FieldTypeCategoriesIntegrationTest.php \Drupal\Tests\field_ui\Functional\FieldTypeCategoriesIntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/field_ui/tests/src/Functional/FieldTypeCategoriesIntegrationTest.php, line 36

Class

FieldTypeCategoriesIntegrationTest
Tests field UI integration with field type categories for loading libraries.

Namespace

Drupal\Tests\field_ui\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create a test user.
    $admin_user = $this->drupalCreateUser([
        'administer node fields',
    ]);
    $this->drupalLogin($admin_user);
}

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