function MemoryTestRunResultsStorage::setDatabasePrefix

Sets the test database prefix of a test run in storage.

Parameters

\Drupal\Core\Test\TestRun $test_run: The test run object.

string $database_prefix: The database prefix.

Overrides TestRunResultsStorageInterface::setDatabasePrefix

File

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

Class

MemoryTestRunResultsStorage
Implements an in-memory test run results storage.

Namespace

Drupal\TestTools\TestRunner

Code

public function setDatabasePrefix(TestRun $test_run, string $database_prefix) : void {
  $this->testId[$test_run->id()]['last_prefix'] = $database_prefix;
}

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