* [MOD] Unit testing. Work in progress

This commit is contained in:
nuxsmin
2018-07-23 23:33:33 +02:00
parent 7d8acde3e8
commit 32d2c2c8b1

View File

@@ -78,13 +78,15 @@ trait DbTestUtilTrait
/**
* @param $user
* @param $host
*
* @throws \SP\Storage\Database\DatabaseException
*/
private function dropUser($user, $host)
{
$this->getConnection()
->query(sprintf('DROP USER IF EXISTS \'%s\'@\'%s\'', $user, $host));
try {
$this->getConnection()
->query(sprintf('DROP USER \'%s\'@\'%s\'', $user, $host));
} catch (\Exception $e) {
processException($e);
}
}
/**