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:
authorPeter Zhang <peter@innocraft.com>2021-10-11 23:26:00 +0300
committerGitHub <noreply@github.com>2021-10-11 23:26:00 +0300
commit910cb0953da391fd57be68f2db79b1b03f36a4d4 (patch)
tree7e42c284e6dc339b65c1111146d16abb76f88daf /plugins/SEO
parent465ad185f9b49e02d97268ea55a646ce3ee3b1b4 (diff)
SEOTest failed print REMOTE_ADDR (#18125)
failed print REMOTE_ADDR
Diffstat (limited to 'plugins/SEO')
-rw-r--r--plugins/SEO/tests/Integration/SEOTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/SEO/tests/Integration/SEOTest.php b/plugins/SEO/tests/Integration/SEOTest.php
index 3483b80101..4d3cb1e577 100644
--- a/plugins/SEO/tests/Integration/SEOTest.php
+++ b/plugins/SEO/tests/Integration/SEOTest.php
@@ -41,13 +41,15 @@ class SEOTest extends IntegrationTestCase
*/
public function test_API()
{
+ $ip = $_SERVER['REMOTE_ADDR'] ?? '';
$ranks = $this->apiFunction();
foreach ($ranks as $rank) {
if ($rank['rank'] == Piwik::translate('General_Error')) {
$this->markTestSkipped('An exception raised when fetching data. Skipping this test for now.');
continue;
}
- $this->assertNotEmpty($rank['rank'], $rank['id'] . ' expected non-zero rank, got [' . $rank['rank'] . ']');
+ $this->assertNotEmpty($rank['rank'],
+ $rank['id'] . ' expected non-zero rank, got [' . $rank['rank'] . '], ip [' .$ip . ']');
}
}