function EnvironmentCleaner::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::__construct()
  2. 8.9.x core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::__construct()
  3. 11.x core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::__construct()

Constructs a test environment cleaner.

Parameters

string $root: The path to the root of the Drupal installation.

\Drupal\Core\Database\Connection $testDatabase: Connection to the database against which tests were run.

\Drupal\Core\Test\TestRunResultsStorageInterface $testRunResultsStorage: The test run results storage.

\Symfony\Component\Console\Output\OutputInterface $output: A Symfony console output object.

\Drupal\Core\File\FileSystemInterface $fileSystem: Drupal's file_system service.

File

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

Class

EnvironmentCleaner
Helper class for cleaning test environments.

Namespace

Drupal\Core\Test

Code

public function __construct(string $root, Connection $testDatabase, TestRunResultsStorageInterface $testRunResultsStorage, OutputInterface $output, FileSystemInterface $fileSystem) {
}

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