private function MigrateTestBase::cleanupMigrateConnection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Tests/MigrateTestBase.php \Drupal\migrate\Tests\MigrateTestBase::cleanupMigrateConnection()
Cleans up the test migrate connection.
@todo Remove when we don't use global. https://www.drupal.org/node/2552791
1 call to MigrateTestBase::cleanupMigrateConnection()
- MigrateTestBase::tearDown in core/
modules/ migrate/ src/ Tests/ MigrateTestBase.php - Performs cleanup tasks after each individual test method has been run.
File
- core/
modules/ migrate/ src/ Tests/ MigrateTestBase.php, line 114 - Contains \Drupal\migrate\Tests\MigrateTestBase.
Class
- MigrateTestBase
- Base class for migration tests.
Namespace
Drupal\migrate\TestsCode
private function cleanupMigrateConnection() {
Database::removeConnection('migrate');
$original_connection_info = Database::getConnectionInfo('simpletest_original_migrate');
if ($original_connection_info) {
Database::renameConnection('simpletest_original_migrate', 'migrate');
}
}