mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 01:22:13 +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:
parent
c512dc2fcc
commit
e9f89cede6
2
e107
2
e107
@ -1 +1 @@
|
||||
Subproject commit c69184848c9578b8f35ea5dd0ca32e4b26dee64c
|
||||
Subproject commit 3b25fe86b6c8e44996b34775647e0275b99ba51f
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user