function MigrateTestBase::cleanupMigrateConnection
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::cleanupMigrateConnection()
- 8.9.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::cleanupMigrateConnection()
- 11.x 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
1 call to MigrateTestBase::cleanupMigrateConnection()
- MigrateTestBase::tearDown in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 123
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');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.