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:
Diffstat (limited to 'plugins/BulkTracking/tests/System/TrackerTest.php')
-rw-r--r--plugins/BulkTracking/tests/System/TrackerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/BulkTracking/tests/System/TrackerTest.php b/plugins/BulkTracking/tests/System/TrackerTest.php
index 5974a1acd5..188e87e1ca 100644
--- a/plugins/BulkTracking/tests/System/TrackerTest.php
+++ b/plugins/BulkTracking/tests/System/TrackerTest.php
@@ -46,8 +46,12 @@ class TrackerTest extends SystemTestCase
$this->tracker->doTrackPageView('Test');
$this->tracker->doTrackPageView('Test');
+ // test skipping invalid site errors
+ $this->tracker->setIdSite(5);
+ $this->tracker->doTrackPageView('Test');
+
$response = $this->tracker->doBulkTrack();
- $this->assertEquals('{"status":"success","tracked":2}', $response);
+ $this->assertEquals('{"status":"success","tracked":2,"invalid":1}', $response);
}
} \ No newline at end of file