You are here

public function EnvironmentCleanerInterface::cleanResultsTable in Drupal 9

Same name and namespace in other branches
  1. 8 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.

1 method overrides EnvironmentCleanerInterface::cleanResultsTable()
EnvironmentCleaner::cleanResultsTable in core/lib/Drupal/Core/Test/EnvironmentCleaner.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\Test

Code

public function cleanResultsTable($test_id = NULL);