private function MigrateTestBase::cleanupMigrateConnection in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::cleanupMigrateConnection()
- 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::cleanupMigrateConnection()
Cleans up the test migrate connection.
@todo Remove when we don't use global. https://www.drupal.org/node/2552791
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 118
Class
- MigrateTestBase
- Creates abstract base class for migration tests.
Namespace
Drupal\Tests\migrate\KernelCode
private function cleanupMigrateConnection() {
Database::removeConnection('migrate');
$original_connection_info = Database::getConnectionInfo('simpletest_original_migrate');
if ($original_connection_info) {
Database::renameConnection('simpletest_original_migrate', 'migrate');
}
}