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

Breadcrumb

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

function 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) {
}

API Navigation

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