abstract class TestBase in Event 8
Class TestBase.
Verifies that behat configuration is as expected.
Hierarchy
- class \Drupal\Tests\PHPUnit\TestBase extends \Drupal\Tests\PHPUnit\PHPUnit_Framework_TestCase
Expanded class hierarchy of TestBase
File
- tests/
phpunit/ src/ TestBase.php, line 10
Namespace
Drupal\Tests\PHPUnitView source
abstract class TestBase extends \PHPUnit_Framework_TestCase {
protected $projectDirectory;
protected $drupalRoot;
/**
* Class constructor.
*/
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';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestBase:: |
protected | property | ||
TestBase:: |
protected | property | ||
TestBase:: |
public | function | Class constructor. |