function UITestBase::setUp
Same name in other branches
- 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()
- 10 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
16 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.
- DisplayOpmlFeedTest::setUp in core/
modules/ aggregator/ tests/ src/ Functional/ views_ui/ DisplayOpmlFeedTest.php - Sets up the test.
- DisplayPathTest::setUp in core/
modules/ views_ui/ tests/ src/ Functional/ DisplayPathTest.php - Sets up the test.
16 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.
- DisplayOpmlFeedTest::setUp in core/
modules/ aggregator/ tests/ src/ Functional/ views_ui/ DisplayOpmlFeedTest.php - Sets up the test.
- DisplayPathTest::setUp in core/
modules/ views_ui/ tests/ src/ Functional/ DisplayPathTest.php - Sets up the test.
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',
]) {
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.