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-02-27 13:08:45 +0300
committerGitHub <noreply@github.com>2020-02-27 13:08:45 +0300
commit93aef4865cfdee9fcfa5acc9ff1950459a0af42e (patch)
treeaa8ad643d8ad233ffb2b033a437bcd2b71274877 /plugins/SegmentEditor/tests/System
parentf28c7fa6cb6c63c8f459206448c7dcb93568099e (diff)
Update to PHPUnit 8.5 (#15581)
* use latest phpunit/phpunit ~8.5 * submodule updates * fixes
Diffstat (limited to 'plugins/SegmentEditor/tests/System')
-rw-r--r--plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php b/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php
index 0d4d9d9971..c54f4d4bed 100644
--- a/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php
+++ b/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php
@@ -37,7 +37,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertNotContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(!in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'customSegmentUnprocessed', [
'idSite' => self::$fixture->idSite,
@@ -57,7 +57,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertNotContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(!in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'realTimeSegmentUnprocessed', [
'idSite' => self::$fixture->idSite,
@@ -77,7 +77,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'autoArchiveSegmentUnprocessed', [
'idSite' => self::$fixture->idSite,
@@ -97,7 +97,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'autoArchiveSegmentUnprocessedEncoded', [
'idSite' => self::$fixture->idSite,
@@ -120,7 +120,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'autoArchiveSegmentPreprocessed', [
'idSite' => self::$fixture->idSite,
@@ -138,7 +138,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertNotContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(!in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'customSegmentPreprocessed', [
'idSite' => self::$fixture->idSite,
@@ -163,7 +163,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'autoArchiveSegmentNoDataPreprocessed', [
'idSite' => self::$fixture->idSite,
@@ -185,7 +185,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'noLogDataSegmentUnprocessed', [
'idSite' => self::$fixture->idSite,
@@ -205,7 +205,7 @@ class UnprocessedSegmentsTest extends IntegrationTestCase
Rules::setBrowserTriggerArchiving(false);
$segments = Rules::getSegmentsToProcess([self::$fixture->idSite]);
- $this->assertContains(self::TEST_SEGMENT, $segments);
+ self::assertTrue(in_array(self::TEST_SEGMENT, $segments));
$this->runAnyApiTest('VisitsSummary.get', 'noLogDataSegmentUnprocessedMultiSite', [
'idSite' => 'all',