function WizardTestBase::setUp

Same name in this branch
  1. 8.9.x core/modules/views/tests/src/Functional/Wizard/WizardTestBase.php \Drupal\Tests\views\Functional\Wizard\WizardTestBase::setUp()
Same name in other branches
  1. 9 core/modules/views/tests/src/Functional/Wizard/WizardTestBase.php \Drupal\Tests\views\Functional\Wizard\WizardTestBase::setUp()
  2. 10 core/modules/views/tests/src/Functional/Wizard/WizardTestBase.php \Drupal\Tests\views\Functional\Wizard\WizardTestBase::setUp()
  3. 11.x core/modules/views/tests/src/Functional/Wizard/WizardTestBase.php \Drupal\Tests\views\Functional\Wizard\WizardTestBase::setUp()

Overrides ViewTestBase::setUp

File

core/modules/views/src/Tests/Wizard/WizardTestBase.php, line 24

Class

WizardTestBase
Views UI wizard tests.

Namespace

Drupal\views\Tests\Wizard

Code

protected function setUp($import_test_views = TRUE) {
    parent::setUp($import_test_views);
    // Create and log in a user with administer views permission.
    $views_admin = $this->drupalCreateUser([
        'administer views',
        'administer blocks',
        'bypass node access',
        'access user profiles',
        'view all revisions',
    ]);
    $this->drupalLogin($views_admin);
    $this->drupalPlaceBlock('local_actions_block');
}

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