function BulkOperationsTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/src/FunctionalJavascript/Plugin/BulkOperationsTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\BulkOperationsTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/views/tests/src/FunctionalJavascript/Plugin/BulkOperationsTest.php, line 29

Class

BulkOperationsTest
Tests the bulk operations.

Namespace

Drupal\Tests\views\FunctionalJavascript\Plugin

Code

protected function setUp() : void {
  parent::setUp();
  // Enable AJAX on the /admin/content View.
  \Drupal::configFactory()->getEditable('views.view.content')
    ->set('display.default.display_options.use_ajax', TRUE)
    ->save();
  $this->drupalCreateContentType([
    'type' => 'page',
  ]);
  $this->drupalLogin($this->createUser([
    'bypass node access',
    'administer nodes',
    'access content overview',
  ]));
}

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