You are here

protected function TestSiteInstallCommand::changeDatabasePrefix in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php \Drupal\TestSite\Commands\TestSiteInstallCommand::changeDatabasePrefix()

File

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

Class

TestSiteInstallCommand
Command to create a test Drupal site.

Namespace

Drupal\TestSite\Commands

Code

protected function changeDatabasePrefix() {

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