Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-10-02 13:15:04 +0300
committerdiosmosis <benaka@piwik.pro>2015-10-02 13:15:04 +0300
commit1db8b419061bcc0506d6919d7f6bde6ae38c259f (patch)
treef27a695ee27e33c6fbb12bb2c9de3edbe6d33da3 /plugins/BulkTracking
parentff53abd7bfa4514ac073acd57158c17127206b28 (diff)
Add test to BulkTracking system test.
Diffstat (limited to 'plugins/BulkTracking')
-rw-r--r--plugins/BulkTracking/tests/System/TrackerTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/BulkTracking/tests/System/TrackerTest.php b/plugins/BulkTracking/tests/System/TrackerTest.php
index aabef2296f..d9dec9b6e9 100644
--- a/plugins/BulkTracking/tests/System/TrackerTest.php
+++ b/plugins/BulkTracking/tests/System/TrackerTest.php
@@ -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