mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-13 11:57:50 +01:00
* [MOD] Updated PHP-DI
* [MOD] Improved some setup behaviour
This commit is contained in:
@@ -155,19 +155,18 @@ class MySQLTest extends TestCase
|
||||
$mysql = new MySQL($this->getParams(), new ConfigData());
|
||||
$mysql->connectDatabase();
|
||||
|
||||
$this->assertInstanceOf(MySQLHandler::class, $mysql->getDbs());
|
||||
$this->assertInstanceOf(MySQLHandler::class, $mysql->getDbHandler());
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
* @throws \SP\Storage\Database\DatabaseException
|
||||
*/
|
||||
public function testCreateDBUser()
|
||||
{
|
||||
$mysql = new MySQL($this->getParams(), new ConfigData());
|
||||
$mysql->createDBUser('test', Util::randomPassword());
|
||||
|
||||
$num = (int)$mysql->getDbs()
|
||||
$num = (int)$mysql->getDbHandler()
|
||||
->getConnectionSimple()
|
||||
->query('SELECT COUNT(*) FROM mysql.user WHERE `User` = \'test\'')
|
||||
->fetchColumn(0);
|
||||
|
||||
Reference in New Issue
Block a user