function TestRun::getTestClass
Same name in other branches
- 11.x core/lib/Drupal/Core/Test/TestRun.php \Drupal\Core\Test\TestRun::getTestClass()
Gets the latest class under test.
Return value
string The test class.
File
-
core/
lib/ Drupal/ Core/ Test/ TestRun.php, line 114
Class
- TestRun
- Implements an object that tracks execution of a test run.
Namespace
Drupal\Core\TestCode
public function getTestClass() : string {
if (is_null($this->testClass)) {
$state = $this->testRunResultsStorage
->getCurrentTestRunState($this);
$this->databasePrefix = $state['db_prefix'];
$this->testClass = $state['test_class'];
}
return $this->testClass;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.