protected function ViewTestBase::setUp in Drupal 8
Same name in this branch
- 8 core/modules/views/src/Tests/ViewTestBase.php \Drupal\views\Tests\ViewTestBase::setUp()
- 8 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()
Sets up a Drupal site for running functional and integration tests.
Installs Drupal with the installation profile specified in \Drupal\simpletest\WebTestBase::$profile into the prefixed database.
Afterwards, installs any additional modules specified in the static \Drupal\simpletest\WebTestBase::$modules property of each class in the class hierarchy.
After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.
Overrides WebTestBase::setUp
8 calls to ViewTestBase::setUp()
- BlockContentTestBase::setUp in core/
modules/ block_content/ src/ Tests/ Views/ BlockContentTestBase.php - Sets up a Drupal site for running functional and integration tests.
- CommentTestBase::setUp in core/
modules/ comment/ src/ Tests/ Views/ CommentTestBase.php - Sets up a Drupal site for running functional and integration tests.
- DateTimeHandlerTestBase::setUp in core/
modules/ datetime/ src/ Tests/ Views/ DateTimeHandlerTestBase.php - Sets up a Drupal site for running functional and integration tests.
- FieldTestBase::setUp in core/
modules/ field/ src/ Tests/ Views/ FieldTestBase.php - Sets up a Drupal site for running functional and integration tests.
- NodeTestBase::setUp in core/
modules/ node/ src/ Tests/ Views/ NodeTestBase.php - Sets up a Drupal site for running functional and integration tests.
8 methods override ViewTestBase::setUp()
- BlockContentTestBase::setUp in core/
modules/ block_content/ src/ Tests/ Views/ BlockContentTestBase.php - Sets up a Drupal site for running functional and integration tests.
- CommentTestBase::setUp in core/
modules/ comment/ src/ Tests/ Views/ CommentTestBase.php - Sets up a Drupal site for running functional and integration tests.
- DateTimeHandlerTestBase::setUp in core/
modules/ datetime/ src/ Tests/ Views/ DateTimeHandlerTestBase.php - Sets up a Drupal site for running functional and integration tests.
- FieldTestBase::setUp in core/
modules/ field/ src/ Tests/ Views/ FieldTestBase.php - Sets up a Drupal site for running functional and integration tests.
- NodeTestBase::setUp in core/
modules/ node/ src/ Tests/ Views/ NodeTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- core/
modules/ views/ src/ Tests/ ViewTestBase.php, line 36
Class
- ViewTestBase
- Defines a base class for Views testing in the full web test environment.
Namespace
Drupal\views\TestsCode
protected function setUp($import_test_views = TRUE) {
parent::setUp();
if ($import_test_views) {
ViewTestData::createTestViews(get_class($this), [
'views_test_config',
]);
}
}