diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-12-09 06:19:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-09 06:19:21 +0300 |
commit | 8aec36a019c1687aee46faf33db368766843cca7 (patch) | |
tree | e853c4bb4f35d34f88150d3eb060b72eaef66040 /plugins/Marketplace/tests | |
parent | d530258efe4e3b9554c84eb98f6037867fffd55e (diff) |
fix marketplace might not search for plugins correctly (#10986)
Diffstat (limited to 'plugins/Marketplace/tests')
-rw-r--r-- | plugins/Marketplace/tests/System/Api/ClientTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Marketplace/tests/System/Api/ClientTest.php b/plugins/Marketplace/tests/System/Api/ClientTest.php index 8c3616321f..7011ebb837 100644 --- a/plugins/Marketplace/tests/System/Api/ClientTest.php +++ b/plugins/Marketplace/tests/System/Api/ClientTest.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\Marketplace\tests\System\Api; use Piwik\Cache; +use Piwik\Http; use Piwik\Plugin; use Piwik\Plugins\Marketplace\Api\Client; use Piwik\Plugins\Marketplace\Api\Service; @@ -211,7 +212,7 @@ class ClientTest extends SystemTestCase 'num_users' => $this->environment->getNumUsers(), 'num_websites' => $this->environment->getNumWebsites() ); - $id = 'marketplace.api.2.0.plugins.' . md5(http_build_query($params)); + $id = 'marketplace.api.2.0.plugins.' . md5(Http::buildQuery($params)); $cache = $this->getCache(); $this->assertFalse($cache->contains($id)); @@ -240,7 +241,7 @@ class ClientTest extends SystemTestCase 'mysql' => $this->environment->getMySQLVersion(), 'num_users' => $this->environment->getNumUsers(), 'num_websites' => $this->environment->getNumWebsites()); - $id = 'marketplace.api.2.0.plugins.' . md5(http_build_query($params)); + $id = 'marketplace.api.2.0.plugins.' . md5(Http::buildQuery($params)); $cache = $this->getCache(); $cache->save($id, array('plugins' => array(array('name' => 'foobar')))); |