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 'tests/PHPUnit')
-rwxr-xr-xtests/PHPUnit/System/TrackerResponseTest.php10
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);
+ }
+
}