From 1db8b419061bcc0506d6919d7f6bde6ae38c259f Mon Sep 17 00:00:00 2001 From: diosmosis Date: Fri, 2 Oct 2015 03:15:04 -0700 Subject: Add test to BulkTracking system test. --- plugins/BulkTracking/tests/System/TrackerTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/BulkTracking') 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 -- cgit v1.2.3