function FieldUIIndentationTest::setUp

Same name in other branches
  1. 8.9.x core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest::setUp()
  2. 10 core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest::setUp()
  3. 11.x core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php, line 29

Class

FieldUIIndentationTest
Tests indentation on Field UI.

Namespace

Drupal\Tests\field_ui\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create a test user.
    $admin_user = $this->drupalCreateUser([
        'access content',
        'administer content types',
        'administer node display',
    ]);
    $this->drupalLogin($admin_user);
    // Create Basic page node type.
    $this->drupalCreateContentType([
        'type' => 'page',
        'name' => 'Basic page',
    ]);
}

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