diff options
Diffstat (limited to 'plugins/API/tests/Unit/JsonRendererTest.php')
-rw-r--r-- | plugins/API/tests/Unit/JsonRendererTest.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/API/tests/Unit/JsonRendererTest.php b/plugins/API/tests/Unit/JsonRendererTest.php index 68ed45b9f3..ea7f5d69d4 100644 --- a/plugins/API/tests/Unit/JsonRendererTest.php +++ b/plugins/API/tests/Unit/JsonRendererTest.php @@ -356,17 +356,14 @@ class JsonRendererTest extends \PHPUnit_Framework_TestCase $this->assertNoJsonError($actual); } - /** - * backwards compatibility test - */ - public function test_oldJson_renderArray_ShouldConvertSingleDimensionalAssociativeArray() + public function test_json_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); @@ -376,7 +373,7 @@ class JsonRendererTest extends \PHPUnit_Framework_TestCase private function makeBuilder($request) { - return new Json2($request); + return new Json($request); } private function assertNoJsonError($response) |