You are here

class StubEnvironmentCleanerService in Drupal 8

Mock environment_cleaner service that does not perform any cleaning.

Hierarchy

Expanded class hierarchy of StubEnvironmentCleanerService

File

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

Namespace

Drupal\Tests\simpletest\Kernel
View source
class StubEnvironmentCleanerService implements EnvironmentCleanerInterface {
  public function cleanDatabase() {
  }
  public function cleanEnvironment($clear_results = TRUE, $clear_temp_directories = TRUE, $clear_database = TRUE) {
  }
  public function cleanResultsTable($test_id = NULL) {
  }
  public function cleanTemporaryDirectories() {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StubEnvironmentCleanerService::cleanDatabase public function Remove database entries left over in the fixture database. Overrides EnvironmentCleanerInterface::cleanDatabase
StubEnvironmentCleanerService::cleanEnvironment public function Removes all test-related database tables and directories. Overrides EnvironmentCleanerInterface::cleanEnvironment
StubEnvironmentCleanerService::cleanResultsTable public function Clears test result tables from the results database. Overrides EnvironmentCleanerInterface::cleanResultsTable
StubEnvironmentCleanerService::cleanTemporaryDirectories public function Finds all leftover fixture site directories and removes them. Overrides EnvironmentCleanerInterface::cleanTemporaryDirectories