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
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-11-15 17:29:02 +0300
committermattab <matthieu.aubry@gmail.com>2016-11-15 17:29:02 +0300
commit00376b4d80fcde30fd0e31efd8e2799df2458b20 (patch)
tree4b93ae73e9bf98d5e7b9e8e4bb08104bb2b88fa2 /tests
parent9e1e06b151ec814f2799901a8944d8425bc9480b (diff)
Test for flatten reports
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/System/DuplicateActionsTest.php2
-rwxr-xr-xtests/PHPUnit/System/OneVisitorTwoVisitsTest.php10
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/PHPUnit/System/DuplicateActionsTest.php b/tests/PHPUnit/System/DuplicateActionsTest.php
index 7d16329fa0..2ffd14be76 100644
--- a/tests/PHPUnit/System/DuplicateActionsTest.php
+++ b/tests/PHPUnit/System/DuplicateActionsTest.php
@@ -64,7 +64,7 @@ class DuplicateActionsTest extends SystemTestCase
'date' => $dateTime,
'compareAgainst' => 'OneVisitorTwoVisits',
'otherRequestParameters' => array(
- 'hideColumns' => 'nb_users',
+ 'hideColumns' => OneVisitorTwoVisitsTest::getValueForHideColumns(),
)
))
);
diff --git a/tests/PHPUnit/System/OneVisitorTwoVisitsTest.php b/tests/PHPUnit/System/OneVisitorTwoVisitsTest.php
index 51f21101ea..b6a0d0c201 100755
--- a/tests/PHPUnit/System/OneVisitorTwoVisitsTest.php
+++ b/tests/PHPUnit/System/OneVisitorTwoVisitsTest.php
@@ -33,6 +33,14 @@ class OneVisitorTwoVisitsTest extends SystemTestCase
*/
public static $fixture = null; // initialized below class
+ /**
+ * @return string
+ */
+ public static function getValueForHideColumns()
+ {
+ return 'nb_users,sum_bandwidth,nb_hits_with_bandwidth,min_bandwidth,max_bandwidth';
+ }
+
public function setUp()
{
Proxy::getInstance()->setHideIgnoredFunctions(false);
@@ -82,7 +90,7 @@ class OneVisitorTwoVisitsTest extends SystemTestCase
array('all', array('idSite' => $idSite,
'date' => $dateTime,
'otherRequestParameters' => array(
- 'hideColumns' => 'nb_users,sum_bandwidth,nb_hits_with_bandwidth,min_bandwidth,max_bandwidth',
+ 'hideColumns' => self::getValueForHideColumns(),
)
)),