function EnvironmentCleaner::cleanResults

Same name in other branches
  1. 10 core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::cleanResults()

Overrides EnvironmentCleanerInterface::cleanResults

1 call to EnvironmentCleaner::cleanResults()
EnvironmentCleaner::cleanEnvironment in core/lib/Drupal/Core/Test/EnvironmentCleaner.php
Removes all test-related database tables and directories.

File

core/lib/Drupal/Core/Test/EnvironmentCleaner.php, line 134

Class

EnvironmentCleaner
Helper class for cleaning test environments.

Namespace

Drupal\Core\Test

Code

public function cleanResults(?TestRun $test_run = NULL) : int {
    return $test_run ? $test_run->removeResults() : $this->testRunResultsStorage
        ->cleanUp();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.