From 7cd80888455d5292fa74499d55b89f7dd61c9267 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 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() {