You are here

public function TestBase::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/TestBase.php \Drupal\simpletest\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 334
Contains \Drupal\simpletest\TestBase.

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

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