1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Restore e107_config.php on test failure.

This commit is contained in:
Cameron
2021-03-06 09:33:22 -08:00
parent 06b86ee380
commit 4064389eb3

View File

@@ -67,6 +67,17 @@ abstract class E107Base extends Base
$this->workaroundOldPhpUnitPhpCodeCoverage();
}
public function _failed($test, $fail)
{
parent::_failed($test, $fail);
$this->revokeLocalE107Config();
$this->preparer->rollback();
$this->restoreLocalE107Config();
$this->workaroundOldPhpUnitPhpCodeCoverage();
}
protected function revokeLocalE107Config()
{
if (file_exists(self::APP_PATH_E107_CONFIG))