function ViewKernelTestBase::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
File
-
core/
modules/ views/ src/ Tests/ ViewKernelTestBase.php, line 48
Class
- ViewKernelTestBase
- Defines a base class for Views unit testing.
Namespace
Drupal\views\TestsCode
protected function setUp($import_test_views = TRUE) {
parent::setUp();
$this->installSchema('system', [
'sequences',
]);
$this->setUpFixtures();
if ($import_test_views) {
ViewTestData::createTestViews(get_class($this), [
'views_test_config',
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.