function BrowserTestBase::__construct

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::__construct()
1 call to BrowserTestBase::__construct()
UpdatePathTestBase::__construct in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
Constructs an UpdatePathTestCase object.
1 method overrides BrowserTestBase::__construct()
UpdatePathTestBase::__construct in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
Constructs an UpdatePathTestCase object.

File

core/tests/Drupal/Tests/BrowserTestBase.php, line 217

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\Tests

Code

public function __construct($name = NULL, array $data = [], $dataName = '') {
    parent::__construct($name, $data, $dataName);
    $this->root = dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__))));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.