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:
-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(),
)
)),