summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-09-30 16:23:43 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-10-01 20:15:03 +0200
commit7cd80888455d5292fa74499d55b89f7dd61c9267 (patch)
treeea6982a2c8e19d34049b4f07b0e230cf7acde4e1 /tests
parent973bcccd7cc18867ea22c24f83421ed180b5022c (diff)
downloadnextcloud-server-7cd80888455d5292fa74499d55b89f7dd61c9267.tar.gz
nextcloud-server-7cd80888455d5292fa74499d55b89f7dd61c9267.zip
Add assertions for ->params and array access with json
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/http/RequestTest.php2
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() {