1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

InstallCest now clears the database

InstallCest now drops all tables from the test database before running
each test.

Fixes: #13
This commit is contained in:
Nick Liu
2018-09-30 14:06:19 -05:00
parent c512dc2fcc
commit e9f89cede6
2 changed files with 11 additions and 1 deletions

2
e107

Submodule e107 updated: c69184848c...3b25fe86b6

View File

@@ -6,6 +6,7 @@ class InstallCest
public function _before(AcceptanceTester $I)
{
$I->unlinkE107ConfigFromTestEnvironment();
$this->dropAllDbTables($I);
}
public function _after(AcceptanceTester $I)
@@ -174,4 +175,13 @@ class InstallCest
}
/**
* @param AcceptanceTester $I
*/
private function dropAllDbTables(AcceptanceTester $I)
{
$db = $I->getDbModule();
$db->_cleanup();
}
}