public function TestBase::__construct

Constructor for Test.

Parameters

$test_id: Tests with the same id are reported together.

2 calls to TestBase::__construct()
UnitTestBase::__construct in drupal/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php
Constructor for UnitTestBase.
WebTestBase::__construct in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Constructor for Drupal\simpletest\WebTestBase.
2 methods override TestBase::__construct()
UnitTestBase::__construct in drupal/core/modules/simpletest/lib/Drupal/simpletest/UnitTestBase.php
Constructor for UnitTestBase.
WebTestBase::__construct in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Constructor for Drupal\simpletest\WebTestBase.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php, line 146
Definition of Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

public function __construct($test_id = NULL) {
  $this->testId = $test_id;
}