You are here

protected function DrushTestBase::tearDown in Media Migration 8

Overrides BrowserTestBase::tearDown

File

tests/src/Functional/DrushTestBase.php, line 193

Class

DrushTestBase
Base class for testing media migrations executed with Drush.

Namespace

Drupal\Tests\media_migration\Functional

Code

protected function tearDown() {
  Database::removeConnection($this->sourceDatabase
    ->getKey());

  // Restore the previous migration connection.
  $connection_info = Database::getConnectionInfo('simpletest_original_migrate');
  if ($connection_info) {
    Database::renameConnection('simpletest_original_migrate', 'migrate');
  }
  parent::tearDown();
}