You are here

protected function FieldUIDeleteTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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);
}