diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-10-03 03:56:37 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-10-03 03:56:37 +0200 |
commit | aedc427ffd73f9ab249f1722c197205bc366ed8d (patch) | |
tree | 9d9e26d969ea3566f1b75fe605b7f6745115b4e4 /tests | |
parent | 8a018d7a59047ef45bfa71b4f07db11a504085b8 (diff) | |
download | nextcloud-server-aedc427ffd73f9ab249f1722c197205bc366ed8d.tar.gz nextcloud-server-aedc427ffd73f9ab249f1722c197205bc366ed8d.zip |
Fix fix of POST :P
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/appframework/http/RequestTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'), ); |