Commit 47ffde10 authored by jwage's avatar jwage

[2.0] Fixing getConnection() to use the new dropAndCreateDatabase()

parent d34a05a2
......@@ -22,21 +22,13 @@ class TestUtil
'memory' => true
);
}
$conn = \Doctrine\DBAL\DriverManager::getConnection($params);
$sm = $conn->getSchemaManager();
try {
$sm->dropDatabase();
} catch (\Exception $e) {}
try {
$sm->createDatabase();
} catch (\Exception $e) {}
$conn = \Doctrine\DBAL\DriverManager::getConnection($params);
$conn->getSchemaManager()->dropAndCreateDatabase();
$conn->close();
$conn->connect();
$conn = \Doctrine\DBAL\DriverManager::getConnection($params);
return $conn;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment