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:
authorStefan Giehl <stefan@matomo.org>2020-07-29 00:32:05 +0300
committerGitHub <noreply@github.com>2020-07-29 00:32:05 +0300
commit844c7ac05789beb583467390ff7c66aa44e69012 (patch)
tree7a4b92ed6852bde6fff3552f88d1f4ad22cced78 /tests/PHPUnit/Fixtures
parent8ca34b2b517810db2e35d8e3c7d4e33007af3faf (diff)
Use new tracker mehtod to set a custom dimension (#16245)
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r--tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php2
-rw-r--r--tests/PHPUnit/Fixtures/ManyVisitsWithMockLocationProvider.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php
index 27602998dd..78d691438e 100644
--- a/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php
+++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogsWithXssAttempts.php
@@ -175,7 +175,7 @@ class ManySitesImportedLogsWithXssAttempts extends ManySitesImportedLogs
$t = self::getTracker($this->idSite, $dateTime, $defaultInit= true);
$t->setUrl('http://example.org/' . urlencode($urlXss));
$t->setUrlReferrer($referrerUrlXss);
- $t->setCustomTrackingParameter('dimension1', $xssTesting->$type('customdimension'));
+ $t->setCustomDimension('1', $xssTesting->$type('customdimension'));
$t->setCustomVariable(1, $xssTesting->$type('customvarname'), $xssTesting->$type('customvarval'));
$t->setUserId($xssTesting->$type('userid'));
$t->setBrowserLanguage($xssTesting->$type('lang'));
diff --git a/tests/PHPUnit/Fixtures/ManyVisitsWithMockLocationProvider.php b/tests/PHPUnit/Fixtures/ManyVisitsWithMockLocationProvider.php
index 3a7a73d844..99a9dcf717 100644
--- a/tests/PHPUnit/Fixtures/ManyVisitsWithMockLocationProvider.php
+++ b/tests/PHPUnit/Fixtures/ManyVisitsWithMockLocationProvider.php
@@ -156,7 +156,7 @@ class ManyVisitsWithMockLocationProvider extends Fixture
$t->setUrl("http://piwik.net/$visitorCounter/");
$t->setUrlReferrer(null);
$t->setForceVisitDateTime($visitDate->getDatetime());
- $t->setCustomTrackingParameter('dimension' . $this->customDimensionId, $i * 5);
+ $t->setCustomDimension('' . $this->customDimensionId, $i * 5);
$this->trackAction($t, $actionType, $visitorCounter, null);
for ($j = 0; $j != 4; ++$j) {