You are here

protected function WizardTestBase::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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');
}