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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-12-05 15:06:51 +0300
committerGitHub <noreply@github.com>2016-12-05 15:06:51 +0300
commit46eafa8ab66d9d7bc785dc6697b8c3168c9d4145 (patch)
treee8f660cf251252160b60c3d39968ca5c623c6b0e /plugins/API/tests/Unit/JsonRendererTest.php
parent95dff7b6812f54c1afc67d6781a5d01d47c3ca60 (diff)
parent1d0dcc553611b551bd8a621a0790f91b897968dd (diff)
Merge pull request #10965 from piwik/3.x-dev3.0.0-b5
Release Piwik 3.0.0-beta5
Diffstat (limited to 'plugins/API/tests/Unit/JsonRendererTest.php')
-rw-r--r--plugins/API/tests/Unit/JsonRendererTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/API/tests/Unit/JsonRendererTest.php b/plugins/API/tests/Unit/JsonRendererTest.php
index ea7f5d69d4..d71d7068ef 100644
--- a/plugins/API/tests/Unit/JsonRendererTest.php
+++ b/plugins/API/tests/Unit/JsonRendererTest.php
@@ -356,14 +356,14 @@ class JsonRendererTest extends \PHPUnit_Framework_TestCase
$this->assertNoJsonError($actual);
}
- public function test_json_renderArray_ShouldConvertSingleDimensionalAssociativeArray()
+ public function test_oldJson_renderArray_ShouldConvertSingleDimensionalAssociativeArray()
{
$input = array(
"firstElement" => "isFirst",
"secondElement" => "isSecond"
);
- $expected = '{"firstElement":"isFirst","secondElement":"isSecond"}';
+ $expected = '[{"firstElement":"isFirst","secondElement":"isSecond"}]';
$oldJsonBuilder = new Json($input);
$actual = $oldJsonBuilder->renderArray($input);
@@ -373,7 +373,7 @@ class JsonRendererTest extends \PHPUnit_Framework_TestCase
private function makeBuilder($request)
{
- return new Json($request);
+ return new Json2($request);
}
private function assertNoJsonError($response)