You are here

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\PHPUnit
View 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

Namesort descending Modifiers Type Description Overrides
TestBase::$drupalRoot protected property
TestBase::$projectDirectory protected property
TestBase::__construct public function Class constructor.