function MemoryTestRunResultsStorage::removeResults
Removes the results of a test run from the storage.
Parameters
\Drupal\Core\Test\TestRun $test_run: The test run object.
Return value
int The number of log entries that were removed from storage.
Overrides TestRunResultsStorageInterface::removeResults
File
-
core/
tests/ Drupal/ TestTools/ TestRunner/ MemoryTestRunResultsStorage.php, line 64
Class
- MemoryTestRunResultsStorage
- Implements an in-memory test run results storage.
Namespace
Drupal\TestTools\TestRunnerCode
public function removeResults(TestRun $test_run) : int {
if (!isset($this->testId[$test_run->id()])) {
return 0;
}
unset($this->testId[$test_run->id()]);
return 1;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.