Skip to content
Extraits de code Groupes Projets
Valider 306ea28d rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fixing integration tests

parent 882b3f1d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -84,6 +84,7 @@ class Fixture extends PHPUnit_Framework_Assert
public function performSetUp($testCase, $setupEnvironmentOnly = false)
{
$this->testEnvironment = new Piwik_TestingEnvironment();
$this->testEnvironment->delete();
try {
\Piwik\SettingsPiwik::$piwikUrlCache = '';
......
......@@ -68,6 +68,12 @@ class Piwik_TestingEnvironment
file_put_contents($overridePath, json_encode($this->behaviorOverrideProperties));
}
public function delete()
{
$this->behaviorOverrideProperties = array();
$this->save();
}
public static function addHooks()
{
$testingEnvironment = new Piwik_TestingEnvironment();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter