diff options
Diffstat (limited to 'tests/PHPUnit/System')
-rwxr-xr-x | tests/PHPUnit/System/TrackerResponseTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/TrackerResponseTest.php b/tests/PHPUnit/System/TrackerResponseTest.php index 05f6b749c3..98cd27baa0 100755 --- a/tests/PHPUnit/System/TrackerResponseTest.php +++ b/tests/PHPUnit/System/TrackerResponseTest.php @@ -114,4 +114,14 @@ class TrackerResponseTest extends SystemTestCase $this->assertHttpResponseText($expected, $url); } + + public function test_response_ShouldReturnPiwikMessageWithHttp503_InCaseOfMaintenanceMode() + { + $url = $this->tracker->getUrlTrackPageView('Test'); + $this->assertResponseCode(200, $url); + + $url = $url . "&forceEnableTrackerMaintenanceMode=1"; + $this->assertResponseCode(503, $url); + } + } |