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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user