protected function ViewsKernelTestBase::setUp in Drupal 8
Same name and namespace in other branches
- 9 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
65 calls to 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 - AreaTextTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaTextTest.php - ArgumentUidRevisionTest::setUp in core/
modules/ node/ tests/ src/ Kernel/ Views/ ArgumentUidRevisionTest.php
65 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 - AreaTextTest::setUp in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaTextTest.php - ArgumentUidRevisionTest::setUp in core/
modules/ node/ tests/ src/ Kernel/ Views/ ArgumentUidRevisionTest.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) {
parent::setUp();
$this
->installSchema('system', [
'sequences',
'key_value_expire',
]);
$this
->setUpFixtures();
if ($import_test_views) {
ViewTestData::createTestViews(get_class($this), [
'views_test_config',
]);
}
}