diff options
author | Peter Zhang <peter@innocraft.com> | 2021-10-14 06:43:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 06:43:46 +0300 |
commit | 22f2889e184c4edb3cace946c633821f637d46b6 (patch) | |
tree | 26521bc3bcf4e20a5d3db0d8fa4d8c4ed8a7a2b9 /tests/PHPUnit/Integration/ReleaseCheckListTest.php | |
parent | 39fb369f8107d24c96480bfdeea8d9bf2237080a (diff) |
remove remain customer variables and provider unit test (#18148)
Diffstat (limited to 'tests/PHPUnit/Integration/ReleaseCheckListTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/ReleaseCheckListTest.php | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php index 7b74515589..2fce4bb392 100644 --- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php @@ -40,27 +40,7 @@ class ReleaseCheckListTest extends \PHPUnit\Framework\TestCase parent::setUp(); } - - public function test_CustomVariablesAndProviderPluginCanBeUninstalledOnceNoLongerIncludedInPackage() - { - $pluginsToTest = ['CustomVariables', 'Provider']; - - $pluginManager = Plugin\Manager::getInstance(); - - $package = Http::sendHttpRequest('https://raw.githubusercontent.com/matomo-org/matomo-package/master/scripts/build-package.sh', 20); - - foreach ($pluginsToTest as $pluginToTest) { - $isPluginBundledWithCore = $pluginManager->isPluginBundledWithCore($pluginToTest); - $isPluginIncludedInBuildZip = strpos($package, 'plugins/' . $pluginToTest) !== false; - - if ($isPluginBundledWithCore xor $isPluginIncludedInBuildZip) { - throw new Exception('Expected that when plugin can be uninstalled (is not included in core), then the plugin is also included in the build-package.sh so it is included in the release zip. Once we no longer include this plugin in build.zip then we need to allow uninstalling these plugins by changing isPluginBundledWithCore method. Plugin is ' . $pluginToTest); - } - } - - $this->assertNotEmpty($isPluginBundledWithCore, 'We expect at least one plugin to be checked in this test, otherwise we can remove this test once they are no longer included in core'); - } - + public function test_TestCaseHasSetGroupsMethod() { // refs https://github.com/matomo-org/matomo/pull/16615 ensures setGroups method still exists in phpunit |