function UITestBase::setUp

Same name in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()
  2. 8.9.x core/modules/views_ui/src/Tests/UITestBase.php \Drupal\views_ui\Tests\UITestBase::setUp()
  3. 8.9.x core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()
  4. 11.x core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()

Overrides ViewTestBase::setUp

15 calls to UITestBase::setUp()
AccessRoleUITest::setUp in core/modules/user/tests/src/Functional/AccessRoleUITest.php
Sets up the test.
ConfigTranslationViewListUiTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php
Sets up the test.
DefaultViewsTest::setUp in core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php
Sets up the test.
DisplayPathTest::setUp in core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
Sets up the test.
DuplicateTest::setUp in core/modules/views_ui/tests/src/Functional/DuplicateTest.php
Sets up the test.

... See full list

15 methods override UITestBase::setUp()
AccessRoleUITest::setUp in core/modules/user/tests/src/Functional/AccessRoleUITest.php
Sets up the test.
ConfigTranslationViewListUiTest::setUp in core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php
Sets up the test.
DefaultViewsTest::setUp in core/modules/views_ui/tests/src/Functional/DefaultViewsTest.php
Sets up the test.
DisplayPathTest::setUp in core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
Sets up the test.
DuplicateTest::setUp in core/modules/views_ui/tests/src/Functional/DuplicateTest.php
Sets up the test.

... 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, $modules = [
    'views_test_config',
]) : void {
    parent::setUp($import_test_views, $modules);
    $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);
}

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