Skip to content

Commit b98b3eb

Browse files
committed
Add test to ensure manipulateRequest for normal RequestProcessors is no longer called with Matomo 6
1 parent beb1e13 commit b98b3eb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/PHPUnit/Integration/Tracker/BotRequestHandlingTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Piwik\Tracker\Request;
2121
use Piwik\Tracker\RequestProcessor;
2222
use Piwik\Tracker\Visit\VisitProperties;
23+
use Piwik\Version;
2324

2425
/**
2526
* @group Core
@@ -106,9 +107,9 @@ public function getTestModeData(): iterable
106107
'manipulateRequest',
107108
'handleRequest',
108109
],
109-
'RequestProcessor' => [
110+
'RequestProcessor' => version_compare(Version::VERSION, '6.0.0-rc1', '<') ? [
110111
'manipulateRequest', // currently still triggered for bc reasons
111-
],
112+
] : [],
112113
],
113114
];
114115

@@ -133,9 +134,9 @@ public function getTestModeData(): iterable
133134
'manipulateRequest',
134135
'handleRequest',
135136
],
136-
'RequestProcessor' => [
137+
'RequestProcessor' => version_compare(Version::VERSION, '6.0.0-rc1', '<') ? [
137138
'manipulateRequest', // currently still triggered for bc reasons
138-
],
139+
] : [],
139140
],
140141
];
141142

0 commit comments

Comments
 (0)