function ViewsKernelTestBase::setUp
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::setUp()
- 8.9.x core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::setUp()
- 10 core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php \Drupal\Tests\views\Kernel\ViewsKernelTestBase::setUp()
Parameters
bool $import_test_views: Should the views specified on the test class be imported. If you need to setup some additional stuff, like fields, you need to call false and then call createTestViews for your own.
Overrides KernelTestBase::setUp
17 calls to ViewsKernelTestBase::setUp()
- AreaTextTokenTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaTextTokenTest.php - ArgumentSummaryTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ ArgumentSummaryTest.php - ArgumentValidateTest::setUp in core/
modules/ user/ tests/ src/ Kernel/ Views/ ArgumentValidateTest.php - CommentAdminViewTest::setUp in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentAdminViewTest.php - CommentUserNameTest::setUp in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentUserNameTest.php
78 methods override ViewsKernelTestBase::setUp()
- AreaDisplayLinkTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaDisplayLinkTest.php - AreaEmptyTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaEmptyTest.php - AreaEntityTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaEntityTest.php - AreaTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaTest.php - AreaTextTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaTextTest.php
File
-
core/
modules/ views/ tests/ src/ Kernel/ ViewsKernelTestBase.php, line 48
Class
- ViewsKernelTestBase
- Defines a base class for Views kernel testing.
Namespace
Drupal\Tests\views\KernelCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp();
$this->setUpFixtures();
if ($import_test_views) {
ViewTestData::createTestViews(static::class, [
'views_test_config',
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.