Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EnvironmentCleaner.php

function 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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal