You are here

public function TestBase::__construct in Event 8

Class constructor.

File

tests/phpunit/src/TestBase.php, line 18

Class

TestBase
Class TestBase.

Namespace

Drupal\Tests\PHPUnit

Code

public function __construct($name = NULL, array $data = [], $data_name = '') {
  parent::__construct($name, $data, $data_name);
  $this->projectDirectory = dirname(dirname(dirname(__DIR__)));
  $this->drupalRoot = $this->projectDirectory . '/docroot';
}