diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-11-02 22:08:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 22:08:53 +0300 |
commit | 7f58bb49a82ef12f2c1e95834d5e32cc4129086c (patch) | |
tree | 3d3d5cd5914952e7e236b23debdc4b07bd66eabd /plugins/Marketplace | |
parent | 50bf1bf803576cc3692796c887df6b1bd94d9e1d (diff) |
reactivate some tests that were disabled till first release (#16652)
Diffstat (limited to 'plugins/Marketplace')
-rw-r--r-- | plugins/Marketplace/tests/System/Api/ClientTest.php | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/plugins/Marketplace/tests/System/Api/ClientTest.php b/plugins/Marketplace/tests/System/Api/ClientTest.php index 788648bb3e..8a86604bd5 100644 --- a/plugins/Marketplace/tests/System/Api/ClientTest.php +++ b/plugins/Marketplace/tests/System/Api/ClientTest.php @@ -51,8 +51,6 @@ class ClientTest extends SystemTestCase public function test_getPluginInfo_existingPluginOnTheMarketplace() { - $this->skipTestUntilFirstRelease(); - $plugin = $this->client->getPluginInfo('SecurityInfo'); $expectedPluginKeys = array( @@ -128,8 +126,6 @@ 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)); @@ -142,8 +138,6 @@ 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)); @@ -194,8 +188,6 @@ class ClientTest extends SystemTestCase public function test_getDownloadUrl() { - $this->skipTestUntilFirstRelease(); - $url = $this->client->getDownloadUrl('SecurityInfo'); $start = $this->domain . '/api/2.0/plugins/SecurityInfo/download/'; @@ -220,7 +212,7 @@ class ClientTest extends SystemTestCase 'release_channel' => 'latest_stable', 'prefer_stable' => 1, 'piwik' => Version::VERSION, - 'php' => phpversion(), + 'php' => $this->environment->getPhpVersion(), 'mysql' => $this->environment->getMySQLVersion(), 'num_users' => $this->environment->getNumUsers(), 'num_websites' => $this->environment->getNumWebsites() @@ -250,7 +242,7 @@ class ClientTest extends SystemTestCase 'release_channel' => 'latest_stable', 'prefer_stable' => 1, 'piwik' => Version::VERSION, - 'php' => phpversion(), + 'php' => $this->environment->getPhpVersion(), 'mysql' => $this->environment->getMySQLVersion(), 'num_users' => $this->environment->getNumUsers(), 'num_websites' => $this->environment->getNumWebsites()); @@ -310,12 +302,4 @@ 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'); - } - } - } |