function TestRunResultsStorageInterface::setDatabasePrefix

Same name in other branches
  1. 10 core/lib/Drupal/Core/Test/TestRunResultsStorageInterface.php \Drupal\Core\Test\TestRunResultsStorageInterface::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.

Throws

\RuntimeException If the operation failed.

1 method overrides TestRunResultsStorageInterface::setDatabasePrefix()
SimpletestTestRunResultsStorage::setDatabasePrefix in core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php
Sets the test database prefix of a test run in storage.

File

core/lib/Drupal/Core/Test/TestRunResultsStorageInterface.php, line 31

Class

TestRunResultsStorageInterface
Interface describing a test run results storage object.

Namespace

Drupal\Core\Test

Code

public function setDatabasePrefix(TestRun $test_run, string $database_prefix) : void;

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