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

Add test to BulkTracking system test.

parent ff53abd7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -53,12 +53,18 @@ class TrackerTest extends SystemTestCase
$this->tracker->setIdSite(1);
$this->tracker->doTrackPageView('Test');
// test skipping invalid request parameter errors
$this->tracker->setDebugStringAppend('cid=abc');
$this->tracker->doTrackPageView('Test');
$this->tracker->DEBUG_APPEND_URL = '';
// another invalid one to further test the invalid request indices in the result
$this->tracker->setIdSite(7);
$this->tracker->doTrackPageView('Test');
$response = $this->tracker->doBulkTrack();
$this->assertEquals('{"status":"success","tracked":3,"invalid":2,"invalid_indices":[2,4]}', $response);
$this->assertEquals('{"status":"success","tracked":3,"invalid":3,"invalid_indices":[2,4,5]}', $response);
}
}
\ No newline at end of file
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