function TestSiteInstallCommand::changeDatabasePrefix

Changes the database connection to the prefixed one.

File

core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php, line 285

Class

TestSiteInstallCommand
Command to create a test Drupal site.

Namespace

Drupal\TestSite\Commands

Code

protected function changeDatabasePrefix() : void {
  // Ensure that we use the database from SIMPLETEST_DB environment variable.
  Database::removeConnection('default');
  $this->changeDatabasePrefixTrait();
}

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