You are here

protected function UITestBase::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()

Overrides ViewTestBase::setUp

4 calls to UITestBase::setUp()
ConfigTranslationViewListUiTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php
DisplayPathTest::setUp in core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
TaxonomyIndexTidUiTest::setUp in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
TaxonomyParentUITest::setUp in core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php
15 methods override UITestBase::setUp()
AccessRoleUITest::setUp in core/modules/user/tests/src/Functional/AccessRoleUITest.php
ConfigTranslationViewListUiTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php
DefaultViewsTest::setUp in core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php
DisplayPathTest::setUp in core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
DuplicateTest::setUp in core/modules/views_ui/tests/src/Functional/DuplicateTest.php

... See full list

File

core/modules/views_ui/tests/src/Functional/UITestBase.php, line 36

Class

UITestBase
Provides a base class for testing the Views UI.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp($import_test_views);
  $this
    ->enableViewsTestModule();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer views',
  ]);
  $this->fullAdminUser = $this
    ->drupalCreateUser([
    'administer views',
    'administer blocks',
    'bypass node access',
    'access user profiles',
    'view all revisions',
    'administer permissions',
  ]);
  $this
    ->drupalLogin($this->fullAdminUser);
}