function TestBase::__construct

Constructor for Test.

Parameters

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

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

File

core/modules/simpletest/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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.