You are here

public function StubEnvironmentCleanerService::cleanEnvironment in Drupal 8

Removes all test-related database tables and directories.

This method removes fixture files and database entries from the system under test.

Parameters

bool $clear_results: (optional) Whether to clear the test results database. Defaults to TRUE.

bool $clear_temp_directories: (optional) Whether to clear the test site directories. Defaults to TRUE.

bool $clear_database: (optional) Whether to clean up the fixture database. Defaults to TRUE.

Overrides EnvironmentCleanerInterface::cleanEnvironment

File

core/modules/simpletest/tests/src/Kernel/DeprecatedCleanupTest.php, line 53

Class

StubEnvironmentCleanerService
Mock environment_cleaner service that does not perform any cleaning.

Namespace

Drupal\Tests\simpletest\Kernel

Code

public function cleanEnvironment($clear_results = TRUE, $clear_temp_directories = TRUE, $clear_database = TRUE) {
}