function BulkFormTest::setUp

Overrides BrowserTestBase::setUp

1 call to BulkFormTest::setUp()
WorkspaceViewsBulkFormTest::setUp in core/modules/workspaces/tests/src/Functional/WorkspaceViewsBulkFormTest.php
1 method overrides BulkFormTest::setUp()
WorkspaceViewsBulkFormTest::setUp in core/modules/workspaces/tests/src/Functional/WorkspaceViewsBulkFormTest.php

File

core/modules/views/tests/src/Functional/BulkFormTest.php, line 34

Class

BulkFormTest
Tests the views bulk form test.

Namespace

Drupal\Tests\views\Functional

Code

protected function setUp() : void {
  parent::setUp();
  // Log in as a user with 'administer nodes' permission to have access to the
  // bulk operation.
  $this->drupalCreateContentType([
    'type' => 'page',
  ]);
  $admin_user = $this->drupalCreateUser([
    'administer nodes',
    'edit any page content',
    'delete any page content',
  ]);
  $this->drupalLogin($admin_user);
}

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