class StubEnvironmentCleanerService

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

Title Sort descending Modifiers Object type Summary Overriden Title
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

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