You are here

protected function ViewTestBase::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Tests/ViewTestBase.php \Drupal\views\Tests\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

70 calls to ViewTestBase::setUp()
AccessTest::setUp in core/modules/views/src/Tests/Plugin/AccessTest.php
Sets up a Drupal site for running functional and integration tests.
AnalyzeTest::setUp in core/modules/views_ui/src/Tests/AnalyzeTest.php
Sets up a Drupal site for running functional and integration tests.
AreaTest::setUp in core/modules/views/src/Tests/Handler/AreaTest.php
Sets up a Drupal site for running functional and integration tests.
AreaTitleWebTest::setUp in core/modules/views/src/Tests/Handler/AreaTitleWebTest.php
Sets up a Drupal site for running functional and integration tests.
ArgumentDefaultTest::setUp in core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

70 methods override ViewTestBase::setUp()
AccessTest::setUp in core/modules/views/src/Tests/Plugin/AccessTest.php
Sets up a Drupal site for running functional and integration tests.
AnalyzeTest::setUp in core/modules/views_ui/src/Tests/AnalyzeTest.php
Sets up a Drupal site for running functional and integration tests.
AreaTest::setUp in core/modules/views/src/Tests/Handler/AreaTest.php
Sets up a Drupal site for running functional and integration tests.
AreaTitleWebTest::setUp in core/modules/views/src/Tests/Handler/AreaTitleWebTest.php
Sets up a Drupal site for running functional and integration tests.
ArgumentDefaultTest::setUp in core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

core/modules/views/src/Tests/ViewTestBase.php, line 35
Contains \Drupal\views\Tests\ViewTestBase.

Class

ViewTestBase
Defines a base class for Views testing in the full web test environment.

Namespace

Drupal\views\Tests

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp();
  if ($import_test_views) {
    ViewTestData::createTestViews(get_class($this), array(
      'views_test_config',
    ));
  }
}