* [MOD] Unit testing. Work in progress

This commit is contained in:
nuxsmin
2018-07-23 23:19:02 +02:00
parent fc5f5fec01
commit 7d8acde3e8
5 changed files with 38 additions and 30 deletions

View File

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