function ViewsUITourTest::setUp

Same name in other branches
  1. 8.9.x core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php \Drupal\Tests\views_ui\Functional\ViewsUITourTest::setUp()
  2. 10 core/modules/tour/tests/src/Functional/ViewsUi/ViewsUITourTest.php \Drupal\Tests\tour\Functional\ViewsUi\ViewsUITourTest::setUp()
  3. 11.x core/modules/tour/tests/src/Functional/ViewsUi/ViewsUITourTest.php \Drupal\Tests\tour\Functional\ViewsUi\ViewsUITourTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php, line 44

Class

ViewsUITourTest
Tests the Views UI tour.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->adminUser = $this->drupalCreateUser([
        'administer views',
        'access tour',
    ]);
    $this->drupalLogin($this->adminUser);
}

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