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>2021-08-17 10:58:59 +0300
committerGitHub <noreply@github.com>2021-08-17 10:58:59 +0300
commit0829d6e6ac487bf47e4197123d6683b271db8266 (patch)
tree77f8edd0c326b29c50d9fefd174cd45d5ebcbc92 /plugins/CustomDimensions/tests
parent8c7fa7d8d414b5201c36661fb4828d14e4c33c53 (diff)
Run AllTests on PHP8 (#16897)
* Run AllTests on PHP8 * use newer phpunit for tests on PHP8 * fix notices/errors * handle trace of phpunit 9 * ensure to compare same types for range check * adjust expected result for php8 * try handling hasDependencies does not exist in PHPUnit 9 * fix: ArgumentCountError: mysqli_stmt::bind_param() does not accept unknown named parameters * Fix usercountry tests * remove incorrect date check * fix expected exception message * fix referrers api test for php8 * add test hint * try to fix session related tests * debug test failure * try to fix mail tests * fix filterUser method * exlucde phpunit from build size calculation * fix scheduled reports test * update release checklist test * unset climode * improves some tests
Diffstat (limited to 'plugins/CustomDimensions/tests')
-rw-r--r--plugins/CustomDimensions/tests/Integration/Dimension/DimensionTest.php2
-rw-r--r--plugins/CustomDimensions/tests/Integration/Dimension/ExtractionTest.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/CustomDimensions/tests/Integration/Dimension/DimensionTest.php b/plugins/CustomDimensions/tests/Integration/Dimension/DimensionTest.php
index 93cba4d4f8..d6c13e14b5 100644
--- a/plugins/CustomDimensions/tests/Integration/Dimension/DimensionTest.php
+++ b/plugins/CustomDimensions/tests/Integration/Dimension/DimensionTest.php
@@ -37,6 +37,7 @@ class DimensionTest extends IntegrationTestCase
public function test_checkExists_shouldNotFailIfDimensionExists()
{
+ $this->expectNotToPerformAssertions();
$this->getDimension($this->id1, 1)->checkExists();
$this->getDimension($this->id2, 1)->checkExists();
$this->getDimension($this->id3, 1)->checkExists();
@@ -52,6 +53,7 @@ class DimensionTest extends IntegrationTestCase
public function test_checkActive_shouldNotFailIfDimensionExistsAndIsActive()
{
+ $this->expectNotToPerformAssertions();
$this->getDimension($this->id1, 1)->checkActive();
$this->getDimension($this->id2, 1)->checkActive();
}
diff --git a/plugins/CustomDimensions/tests/Integration/Dimension/ExtractionTest.php b/plugins/CustomDimensions/tests/Integration/Dimension/ExtractionTest.php
index 82201edd28..eb9f73a75f 100644
--- a/plugins/CustomDimensions/tests/Integration/Dimension/ExtractionTest.php
+++ b/plugins/CustomDimensions/tests/Integration/Dimension/ExtractionTest.php
@@ -198,6 +198,7 @@ class ExtractionTest extends IntegrationTestCase
public function test_check_shouldNotFailWhenValidCombinationsAreGiven()
{
+ $this->expectNotToPerformAssertions();
$this->buildExtraction('url', 'index_(+).html')->check();
$this->buildExtraction('action_name', 'index_(+).html')->check();
$this->buildExtraction('url', '')->check(); // empty value is allowed