function FieldUIIndentationTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest::setUp()
  2. 8.9.x core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest::setUp()
  3. 10 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 31

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.