function WizardTestBase::setUp

Same name in this branch
  1. 8.9.x core/modules/views/src/Tests/Wizard/WizardTestBase.php \Drupal\views\Tests\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

5 calls to WizardTestBase::setUp()
BasicTest::setUp in core/modules/views/tests/src/Functional/Wizard/BasicTest.php
ItemsPerPageTest::setUp in core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php
SortingTest::setUp in core/modules/views/tests/src/Functional/Wizard/SortingTest.php
TaggedWithTest::setUp in core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php
WizardTest::setUp in core/modules/comment/tests/src/Functional/Views/WizardTest.php
5 methods override WizardTestBase::setUp()
BasicTest::setUp in core/modules/views/tests/src/Functional/Wizard/BasicTest.php
ItemsPerPageTest::setUp in core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php
SortingTest::setUp in core/modules/views/tests/src/Functional/Wizard/SortingTest.php
TaggedWithTest::setUp in core/modules/views/tests/src/Functional/Wizard/TaggedWithTest.php
WizardTest::setUp in core/modules/comment/tests/src/Functional/Views/WizardTest.php

File

core/modules/views/tests/src/Functional/Wizard/WizardTestBase.php, line 19

Class

WizardTestBase
Views UI wizard tests.

Namespace

Drupal\Tests\views\Functional\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.