function MemoryTestRunResultsStorage::buildTestingResultsEnvironment

Prepares the test run storage.

Parameters

bool $keep_results: If TRUE, any pre-existing storage will be preserved; if FALSE, pre-existing storage will be cleaned up.

Overrides TestRunResultsStorageInterface::buildTestingResultsEnvironment

1 call to MemoryTestRunResultsStorage::buildTestingResultsEnvironment()
MemoryTestRunResultsStorage::cleanUp in core/tests/Drupal/TestTools/TestRunner/MemoryTestRunResultsStorage.php
Resets the test run storage.

File

core/tests/Drupal/TestTools/TestRunner/MemoryTestRunResultsStorage.php, line 114

Class

MemoryTestRunResultsStorage
Implements an in-memory test run results storage.

Namespace

Drupal\TestTools\TestRunner

Code

public function buildTestingResultsEnvironment(bool $keep_results) : void {
  if (!$keep_results) {
    $this->id = 1;
    $this->testId = [];
  }
}

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