mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-10 10:26:58 +01:00
* [ADD] Updated database structure
* [MOD] Unit testing. Work in progress
This commit is contained in:
@@ -44,6 +44,16 @@ class MySQLTest extends TestCase
|
||||
|
||||
const DB_NAME = 'syspass_test';
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
public function testCheckDatabaseNotExist()
|
||||
{
|
||||
$mysql = new MySQL($this->getParams(), new ConfigData());
|
||||
|
||||
$this->assertFalse($mysql->checkDatabaseExist());
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Storage\Database\DatabaseException
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
@@ -79,16 +89,6 @@ class MySQLTest extends TestCase
|
||||
return $params;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
public function testCheckDatabaseNotExist()
|
||||
{
|
||||
$mysql = new MySQL($this->getParams(), new ConfigData());
|
||||
|
||||
$this->assertFalse($mysql->checkDatabaseExist());
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \SP\Core\Exceptions\SPException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user