function 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\FunctionalCode
protected function setUp() : void {
  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.
