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-25 18:20:50 +0300
committerGitHub <noreply@github.com>2020-02-25 18:20:50 +0300
commit16d219604e7a54895bcc47b5ca0b03a11288e2fd (patch)
treee43442b02f0198a923ba666b645c64388ef2c617 /plugins/Marketplace
parent4827e21d64e82252fba5ae24ebae93c466da15ea (diff)
temporarily skip some tests until we have a first release (#15622)
Diffstat (limited to 'plugins/Marketplace')
-rw-r--r--plugins/Marketplace/tests/System/Api/ClientTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/Marketplace/tests/System/Api/ClientTest.php b/plugins/Marketplace/tests/System/Api/ClientTest.php
index 694be41eb3..230fcf2a3a 100644
--- a/plugins/Marketplace/tests/System/Api/ClientTest.php
+++ b/plugins/Marketplace/tests/System/Api/ClientTest.php
@@ -51,6 +51,8 @@ class ClientTest extends SystemTestCase
public function test_getPluginInfo_existingPluginOnTheMarketplace()
{
+ $this->skipTestUntilFirstRelease();
+
$plugin = $this->client->getPluginInfo('SecurityInfo');
$expectedPluginKeys = array(
@@ -127,6 +129,8 @@ class ClientTest extends SystemTestCase
public function test_searchForPlugins_requestAll()
{
+ $this->skipTestUntilFirstRelease();
+
$plugins = $this->client->searchForPlugins($keywords = '', $query = '', $sort = '', $purchaseType = PurchaseType::TYPE_ALL);
$this->assertGreaterThan(15, count($plugins));
@@ -139,6 +143,8 @@ class ClientTest extends SystemTestCase
public function test_searchForPlugins_onlyFree()
{
+ $this->skipTestUntilFirstRelease();
+
$plugins = $this->client->searchForPlugins($keywords = '', $query = '', $sort = '', $purchaseType = PurchaseType::TYPE_FREE);
$this->assertGreaterThan(15, count($plugins));
@@ -189,6 +195,8 @@ class ClientTest extends SystemTestCase
public function test_getDownloadUrl()
{
+ $this->skipTestUntilFirstRelease();
+
$url = $this->client->getDownloadUrl('SecurityInfo');
$start = $this->domain . '/api/2.0/plugins/SecurityInfo/download/';
@@ -304,4 +312,11 @@ class ClientTest extends SystemTestCase
return Cache::getLazyCache();
}
+ public function skipTestUntilFirstRelease()
+ {
+ if (version_compare(Version::VERSION, '4.0.0-rc1', '<')) {
+ $this->markTestSkipped('Skipping tests until we have first release candidate');
+ }
+ }
+
}