mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [MOD] Unit testing. Work in progress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user