function FieldUIDeleteTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/field_ui/tests/src/Functional/FieldUIDeleteTest.php, line 49

Class

FieldUIDeleteTest
Tests deletion of a field and their dependencies in the UI.

Namespace

Drupal\Tests\field_ui\Functional

Code

protected function setUp() {
    parent::setUp();
    $this->drupalPlaceBlock('system_breadcrumb_block');
    $this->drupalPlaceBlock('local_tasks_block');
    $this->drupalPlaceBlock('page_title_block');
    // Create a test user.
    $admin_user = $this->drupalCreateUser([
        'access content',
        'administer content types',
        'administer node fields',
        'administer node form display',
        'administer node display',
        'administer users',
        'administer account settings',
        'administer user display',
        'bypass node access',
    ]);
    $this->drupalLogin($admin_user);
}

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