1
0
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:
Nick Liu 2018-09-30 14:06:19 -05:00
parent c512dc2fcc
commit e9f89cede6
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637
2 changed files with 11 additions and 1 deletions

2
e107

@ -1 +1 @@
Subproject commit c69184848c9578b8f35ea5dd0ca32e4b26dee64c
Subproject commit 3b25fe86b6c8e44996b34775647e0275b99ba51f

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();
}
}