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:
2
e107
2
e107
Submodule e107 updated: c69184848c...3b25fe86b6
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user