From aedc427ffd73f9ab249f1722c197205bc366ed8d Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 3 Oct 2013 03:56:37 +0200 Subject: Fix fix of POST :P --- tests/lib/appframework/http/RequestTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/lib/appframework/http/RequestTest.php b/tests/lib/appframework/http/RequestTest.php index acd61e70919..00473a8c44f 100644 --- a/tests/lib/appframework/http/RequestTest.php +++ b/tests/lib/appframework/http/RequestTest.php @@ -115,8 +115,9 @@ class RequestTest extends \PHPUnit_Framework_TestCase { } public function testJsonPost() { + global $data; + $data = '{"name": "John Q. Public", "nickname": "Joey"}'; $vars = array( - 'post' => '{"name": "John Q. Public", "nickname": "Joey"}', 'method' => 'POST', 'server' => array('CONTENT_TYPE' => 'application/json; utf-8'), ); @@ -135,7 +136,6 @@ class RequestTest extends \PHPUnit_Framework_TestCase { $data = http_build_query(array('name' => 'John Q. Public', 'nickname' => 'Joey'), '', '&'); $vars = array( - 'patch' => $data, 'method' => 'PATCH', 'server' => array('CONTENT_TYPE' => 'application/x-www-form-urlencoded'), ); -- cgit v1.2.3