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:
authorThomas Steur <thomas.steur@googlemail.com>2014-11-14 03:14:35 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-14 03:14:35 +0300
commit03d1687c49860afbf7aa056d983c442d5f0203b5 (patch)
tree36fcd7a896ac942a98d5e2f983ec62f0adbcc6ec /tests/PHPUnit/System/TrackerTest.php
parent7500b93cd45856832770c6bbfe030fc2e5d83033 (diff)
refs #6661 also return HTTP 400 when idsite is 0
Diffstat (limited to 'tests/PHPUnit/System/TrackerTest.php')
-rwxr-xr-xtests/PHPUnit/System/TrackerTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/TrackerTest.php b/tests/PHPUnit/System/TrackerTest.php
index 29ba0c95e5..baba28e763 100755
--- a/tests/PHPUnit/System/TrackerTest.php
+++ b/tests/PHPUnit/System/TrackerTest.php
@@ -77,4 +77,12 @@ class TrackerTest extends SystemTestCase
$this->assertResponseCode(400, $url);
}
+ public function test_response_ShouldSend400ResponseCode_IfSiteIdIsZero()
+ {
+ $url = $this->tracker->getUrlTrackPageView('Test');
+ $url .= '&idsite=0';
+
+ $this->assertResponseCode(400, $url);
+ }
+
}