function ClaroViewsBulkOperationsTest::setUp

Same name in other branches
  1. 10 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroViewsBulkOperationsTest.php \Drupal\FunctionalJavascriptTests\Theme\ClaroViewsBulkOperationsTest::setUp()

Overrides BrowserTestBase::setUp

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroViewsBulkOperationsTest.php, line 33

Class

ClaroViewsBulkOperationsTest
Tests Claro's Views Bulk Operations form.

Namespace

Drupal\FunctionalJavascriptTests\Theme

Code

protected function setUp() : void {
    parent::setUp();
    // Create a Content type and two test nodes.
    $this->createContentType([
        'type' => 'page',
    ]);
    $this->createNode([
        'title' => 'Page One',
    ]);
    $this->createNode([
        'title' => 'Page Two',
    ]);
    // Create a user privileged enough to use exposed filters and view content.
    $user = $this->drupalCreateUser([
        'administer site configuration',
        'access content',
        'access content overview',
        'edit any page content',
    ]);
    $this->drupalLogin($user);
}

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