diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-30 16:23:43 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-09-30 16:23:43 +0200 |
commit | 1d2466c6d1126dc4d0e04ab579ca42758293dc9b (patch) | |
tree | 14aa4de4aedfabdf55181cc5d23424c7336a3105 | |
parent | 092b4e7b5381e9cb96efda9e4535648ffab506cd (diff) | |
download | nextcloud-server-1d2466c6d1126dc4d0e04ab579ca42758293dc9b.tar.gz nextcloud-server-1d2466c6d1126dc4d0e04ab579ca42758293dc9b.zip |
Add assertions for ->params and array access with json
-rw-r--r-- | tests/lib/appframework/http/RequestTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/appframework/http/RequestTest.php b/tests/lib/appframework/http/RequestTest.php index 847c6610fe8..aaa2328be10 100644 --- a/tests/lib/appframework/http/RequestTest.php +++ b/tests/lib/appframework/http/RequestTest.php @@ -115,6 +115,8 @@ class RequestTest extends \PHPUnit_Framework_TestCase { $result = $request->post; $this->assertEquals('John Q. Public', $result['name']); $this->assertEquals('Joey', $result['nickname']); + $this->assertEquals('Joey', $request->params['nickname']); + $this->assertEquals('Joey', $request['nickname']); } public function testPatch() { |