Skip to content
Extraits de code Groupes Projets
Valider 414dba01 rédigé par mattab's avatar mattab
Parcourir les fichiers

Skip test on Mysqli

parent 952f81e8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -46,10 +46,15 @@ class Test_Piwik_Integration_AutoSuggestAPITest extends IntegrationTestCase ...@@ -46,10 +46,15 @@ class Test_Piwik_Integration_AutoSuggestAPITest extends IntegrationTestCase
$apiForTesting[] = $this->getApiForTestingForSegment($idSite, $segment['segment']); $apiForTesting[] = $this->getApiForTestingForSegment($idSite, $segment['segment']);
} }
$apiForTesting[] = array('Live.getLastVisitsDetails', // Skip the test on Mysqli as it fails due to rounding Float errors on latitude/longitude
array('idSite' => $idSite, if(getenv('MYSQL_ADAPTER') != 'MYSQLI') {
'date' => date('Y-m-d', strtotime(self::$fixture->dateTime)),
'period' => 'year')); $apiForTesting[] = array('Live.getLastVisitsDetails',
array('idSite' => $idSite,
'date' => date('Y-m-d', strtotime(self::$fixture->dateTime)),
'period' => 'year'));
}
return $apiForTesting; return $apiForTesting;
} }
......
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