From 1d2466c6d1126dc4d0e04ab579ca42758293dc9b Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 30 Sep 2013 16:23:43 +0200 Subject: [PATCH] Add assertions for ->params and array access with json --- tests/lib/appframework/http/RequestTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/appframework/http/RequestTest.php b/tests/lib/appframework/http/RequestTest.php index 847c6610fe..aaa2328be1 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() {