diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-04-13 03:30:19 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-04-13 05:56:44 +0300 |
commit | 2945b1cd43d8baeea61d70475e121bfc920e72e0 (patch) | |
tree | 13bd82a4bc3cff43f6f6ff977b397d6bc02c71b6 /tests/PHPUnit/System/TrackerResponseTest.php | |
parent | bd9efbb7341f0d6b1d650949c3de82f82f81e165 (diff) |
refs piwik/piwik-log-analytics#57 return a http 400 if no request is set
Diffstat (limited to 'tests/PHPUnit/System/TrackerResponseTest.php')
-rwxr-xr-x | tests/PHPUnit/System/TrackerResponseTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/System/TrackerResponseTest.php b/tests/PHPUnit/System/TrackerResponseTest.php index 7bd0f7aef7..16ab4a4e01 100755 --- a/tests/PHPUnit/System/TrackerResponseTest.php +++ b/tests/PHPUnit/System/TrackerResponseTest.php @@ -97,10 +97,10 @@ class TrackerResponseTest extends SystemTestCase public function test_response_ShouldReturnPiwikMessage_InCaseOfEmptyRequest() { $url = Fixture::getTrackerUrl(); - $response = file_get_contents($url); + $this->assertResponseCode(400, $url); $expected = "<a href='/'>Piwik</a> is a free/libre web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data."; - $this->assertEquals($expected, $response); + $this->assertHttpResponseText($expected, $url); } } |