4 calls to Database::renameConnection()

DrupalUnitTestCase::setUp in modules/simpletest/drupal_web_test_case.php
Sets up unit test environment.
DrupalUnitTestCase::tearDown in modules/simpletest/drupal_web_test_case.php
DrupalWebTestCase::changeDatabasePrefix in modules/simpletest/drupal_web_test_case.php
Changes the database connection to the prefixed one.
DrupalWebTestCase::tearDown in modules/simpletest/drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

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