function TestRun::setDatabasePrefix
Same name in other branches
- 11.x core/lib/Drupal/Core/Test/TestRun.php \Drupal\Core\Test\TestRun::setDatabasePrefix()
Sets the test database prefix.
Parameters
string $database_prefix: The database prefix.
Throws
\RuntimeException If the database prefix cannot be saved to storage.
File
-
core/
lib/ Drupal/ Core/ Test/ TestRun.php, line 88
Class
- TestRun
- Implements an object that tracks execution of a test run.
Namespace
Drupal\Core\TestCode
public function setDatabasePrefix(string $database_prefix) : void {
$this->databasePrefix = $database_prefix;
$this->testRunResultsStorage
->setDatabasePrefix($this, $database_prefix);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.