mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [MOD] Unit testing. Work in progress
This commit is contained in:
@@ -56,21 +56,6 @@ class MySQLTest extends TestCase
|
||||
$this->assertFalse($mysql->checkDatabaseExist());
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Storage\Database\DatabaseException
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
public function testCheckDatabaseExist()
|
||||
{
|
||||
$this->createDatabase(self::DB_NAME);
|
||||
|
||||
$mysql = new MySQL($this->getParams(), new ConfigData());
|
||||
|
||||
$this->assertTrue($mysql->checkDatabaseExist());
|
||||
|
||||
$this->dropDatabase(self::DB_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return InstallData
|
||||
*/
|
||||
@@ -91,6 +76,21 @@ class MySQLTest extends TestCase
|
||||
return $params;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Storage\Database\DatabaseException
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
public function testCheckDatabaseExist()
|
||||
{
|
||||
$this->createDatabase(self::DB_NAME);
|
||||
|
||||
$mysql = new MySQL($this->getParams(), new ConfigData());
|
||||
|
||||
$this->assertTrue($mysql->checkDatabaseExist());
|
||||
|
||||
$this->dropDatabase(self::DB_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user