Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestRun.php

function 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\Test

Code

public function setDatabasePrefix(string $database_prefix) : void {
    $this->databasePrefix = $database_prefix;
    $this->testRunResultsStorage
        ->setDatabasePrefix($this, $database_prefix);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal