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>2016-12-09 06:19:21 +0300
committerGitHub <noreply@github.com>2016-12-09 06:19:21 +0300
commit8aec36a019c1687aee46faf33db368766843cca7 (patch)
treee853c4bb4f35d34f88150d3eb060b72eaef66040 /tests/PHPUnit
parentd530258efe4e3b9554c84eb98f6037867fffd55e (diff)
fix marketplace might not search for plugins correctly (#10986)
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r--tests/PHPUnit/Integration/HttpTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/HttpTest.php b/tests/PHPUnit/Integration/HttpTest.php
index 823b6037be..afa068bdf4 100644
--- a/tests/PHPUnit/Integration/HttpTest.php
+++ b/tests/PHPUnit/Integration/HttpTest.php
@@ -55,6 +55,13 @@ class HttpTest extends \PHPUnit_Framework_TestCase
$this->assertGreaterThan(0, filesize($destinationPath));
}
+ public function testBuildQuery()
+ {
+ $this->assertEquals('', Http::buildQuery(array()));
+ $this->assertEquals('test=foo', Http::buildQuery(array('test' => 'foo')));
+ $this->assertEquals('test=foo&bar=baz', Http::buildQuery(array('test' => 'foo', 'bar' => 'baz')));
+ }
+
/**
* @dataProvider getMethodsToTest
*/