You are here

public function TestBase::__construct in SimpleTest 8.3

Constructor for Test.

Parameters

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

2 calls to TestBase::__construct()
KernelTestBase::__construct in src/KernelTestBase.php
Constructor for Test.
WebTestBase::__construct in src/WebTestBase.php
Constructor for \Drupal\simpletest\WebTestBase.
2 methods override TestBase::__construct()
KernelTestBase::__construct in src/KernelTestBase.php
Constructor for Test.
WebTestBase::__construct in src/WebTestBase.php
Constructor for \Drupal\simpletest\WebTestBase.

File

src/TestBase.php, line 252

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

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