diff --git a/e107_tests/tests/_support/Helper/E107Base.php b/e107_tests/tests/_support/Helper/E107Base.php index 5af690d68..2b52abd14 100644 --- a/e107_tests/tests/_support/Helper/E107Base.php +++ b/e107_tests/tests/_support/Helper/E107Base.php @@ -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))