public function EnvironmentCleanerInterface::cleanResultsTable in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Test/EnvironmentCleanerInterface.php \Drupal\Core\Test\EnvironmentCleanerInterface::cleanResultsTable()
- 10 core/lib/Drupal/Core/Test/EnvironmentCleanerInterface.php \Drupal\Core\Test\EnvironmentCleanerInterface::cleanResultsTable()
Clears test result tables from the results database.
Parameters
$test_id: Test ID to remove results for, or NULL to remove all results.
Return value
int The number of results that were removed.
2 methods override EnvironmentCleanerInterface::cleanResultsTable()
- EnvironmentCleaner::cleanResultsTable in core/
lib/ Drupal/ Core/ Test/ EnvironmentCleaner.php - Clears test result tables from the results database.
- StubEnvironmentCleanerService::cleanResultsTable in core/
modules/ simpletest/ tests/ src/ Kernel/ DeprecatedCleanupTest.php - Clears test result tables from the results database.
File
- core/
lib/ Drupal/ Core/ Test/ EnvironmentCleanerInterface.php, line 55
Class
- EnvironmentCleanerInterface
- Defines an interface for cleaning up test results and fixtures.
Namespace
Drupal\Core\TestCode
public function cleanResultsTable($test_id = NULL);