function UITestBase::setUp
Same name in other branches
- 9 core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()
- 8.9.x core/modules/views_ui/src/Tests/UITestBase.php \Drupal\views_ui\Tests\UITestBase::setUp()
- 8.9.x core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()
- 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 - 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
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
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\FunctionalCode
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.