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/Integration/OneVisitor_SeveralDays_ImportedInRandomOrderTest.php')
-rw-r--r--tests/PHPUnit/Integration/OneVisitor_SeveralDays_ImportedInRandomOrderTest.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/OneVisitor_SeveralDays_ImportedInRandomOrderTest.php b/tests/PHPUnit/Integration/OneVisitor_SeveralDays_ImportedInRandomOrderTest.php
new file mode 100644
index 0000000000..c68e30f1fc
--- /dev/null
+++ b/tests/PHPUnit/Integration/OneVisitor_SeveralDays_ImportedInRandomOrderTest.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+
+class Test_Piwik_Integration_OneVisitor_SeveralDays_ImportedInRandomOrderTest extends IntegrationTestCase
+{
+ public static $fixture = null; // initialized below class definition
+
+ /**
+ * @dataProvider getApiForTesting
+ * @group Integration
+ * @group OneVisitor_SeveralDays_ImportedInRandomOrder
+ */
+ public function testApi($api, $params)
+ {
+ $this->runApiTests($api, $params);
+ }
+
+ public function getApiForTesting()
+ {
+ return array(
+ // This should show 1 visit on 3 different days
+ array('Live.getLastVisitsDetails', array(
+ 'idSite' => '1',
+ 'date' => self::$fixture->dateTime,
+ 'periods' => 'month',
+ 'testSuffix' => '_shouldShowOneVisit_InEachOfThreeDays',
+ 'otherRequestParameters' => array('hideColumns' => 'visitorId')
+
+ )),
+ );
+ }
+
+
+
+}
+
+Test_Piwik_Integration_OneVisitor_SeveralDays_ImportedInRandomOrderTest::$fixture = new Test_Piwik_Fixture_VisitOverSeveralDaysImportedLogs();
+