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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-10-27 14:11:51 +0300
committerGitHub <noreply@github.com>2020-10-27 14:11:51 +0300
commit8f703bbc9d914d013c124d1e1d0f2ecd47d88ec4 (patch)
tree6e19c7f0c5f025d15d49e3aba95e82760e612554 /tests/PHPUnit/Integration/ReleaseCheckListTest.php
parent76ab5fedff8bd0b6837f67a81ba0c2d9099ed86b (diff)
Automatically add phpunit group name to a plugin php test (#16615)
* Automatically add plugin group to every test * prevent possible error * add test
Diffstat (limited to 'tests/PHPUnit/Integration/ReleaseCheckListTest.php')
-rw-r--r--tests/PHPUnit/Integration/ReleaseCheckListTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
index 2f7b258b6d..1b436ecd37 100644
--- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php
+++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
@@ -9,6 +9,7 @@
namespace Piwik\Tests\Integration;
use Exception;
+use PHPUnit\Framework\TestCase;
use Piwik\AssetManager\UIAssetFetcher;
use Piwik\Config;
use Piwik\Container\StaticContainer;
@@ -38,6 +39,13 @@ class ReleaseCheckListTest extends \PHPUnit\Framework\TestCase
parent::setUp();
}
+ public function test_TestCaseHasSetGroupsMethod()
+ {
+ // refs https://github.com/matomo-org/matomo/pull/16615 ensures setGroups method still exists in phpunit
+ // checking this way as it is not an official API
+ $this->assertTrue(method_exists(TestCase::class,'setGroups'));
+ }
+
public function test_woff2_fileIsUpToDate()
{
link(PIWIK_INCLUDE_PATH . "/plugins/Morpheus/fonts/matomo.ttf", "temp.ttf");