protected function UITestBase::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()
- 9 core/modules/views_ui/tests/src/Functional/UITestBase.php \Drupal\Tests\views_ui\Functional\UITestBase::setUp()
2 methods override UITestBase::setUp()
- TaxonomyIndexTidUiTest::setUp in core/
modules/ taxonomy/ tests/ src/ Functional/ Views/ TaxonomyIndexTidUiTest.php - TaxonomyParentUITest::setUp in core/
modules/ taxonomy/ tests/ src/ Functional/ Views/ TaxonomyParentUITest.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);
}