You are here

protected function WizardTestBase::setUp in Zircon Profile 8

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

5 calls to WizardTestBase::setUp()
BasicTest::setUp in core/modules/views/src/Tests/Wizard/BasicTest.php
Sets up a Drupal site for running functional and integration tests.
ItemsPerPageTest::setUp in core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php
Sets up a Drupal site for running functional and integration tests.
SortingTest::setUp in core/modules/views/src/Tests/Wizard/SortingTest.php
Sets up a Drupal site for running functional and integration tests.
TaggedWithTest::setUp in core/modules/views/src/Tests/Wizard/TaggedWithTest.php
Sets up a Drupal site for running functional and integration tests.
WizardTest::setUp in core/modules/comment/src/Tests/Views/WizardTest.php
Sets up a Drupal site for running functional and integration tests.
5 methods override WizardTestBase::setUp()
BasicTest::setUp in core/modules/views/src/Tests/Wizard/BasicTest.php
Sets up a Drupal site for running functional and integration tests.
ItemsPerPageTest::setUp in core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php
Sets up a Drupal site for running functional and integration tests.
SortingTest::setUp in core/modules/views/src/Tests/Wizard/SortingTest.php
Sets up a Drupal site for running functional and integration tests.
TaggedWithTest::setUp in core/modules/views/src/Tests/Wizard/TaggedWithTest.php
Sets up a Drupal site for running functional and integration tests.
WizardTest::setUp in core/modules/comment/src/Tests/Views/WizardTest.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/views/src/Tests/Wizard/WizardTestBase.php, line 24
Contains \Drupal\views\Tests\Wizard\WizardTestBase.

Class

WizardTestBase
Views UI wizard tests.

Namespace

Drupal\views\Tests\Wizard

Code

protected function setUp() {
  parent::setUp();

  // Create and log in a user with administer views permission.
  $views_admin = $this
    ->drupalCreateUser(array(
    'administer views',
    'administer blocks',
    'bypass node access',
    'access user profiles',
    'view all revisions',
  ));
  $this
    ->drupalLogin($views_admin);
  $this
    ->drupalPlaceBlock('local_actions_block');
}