Skip to content

Commit 8aaff00

Browse files
committed
fix tests for older releases
1 parent d1eda70 commit 8aaff00

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/System/CustomVariablesSystemTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ public function getApiForTesting()
5353
];
5454
}
5555

56+
if (version_compare(Version::VERSION, '5.4.0-b5', '<')) {
57+
// In Matomo 5.4 ai referrer had been added
58+
$xmlFieldsToRemove = array_merge($xmlFieldsToRemove, ['referrerAIAssistantUrl', 'referrerAIAssistantIcon']);
59+
}
60+
5661
return [
5762
[
5863
$apiToCall,

0 commit comments

Comments
 (0)