* [ADD] Updated database structure

* [MOD] Unit testing. Work in progress
This commit is contained in:
nuxsmin
2018-07-23 20:10:18 +02:00
parent 5d90b89f05
commit 88999bcd7c
17 changed files with 438 additions and 83 deletions

View File

@@ -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
*/