From: Thomas Tanghus Date: Mon, 30 Sep 2013 14:23:43 +0000 (+0200) Subject: Add assertions for ->params and array access with json X-Git-Tag: v6.0.0alpha2~93^2~3^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d2466c6d1126dc4d0e04ab579ca42758293dc9b;p=nextcloud-server.git Add assertions for ->params and array access with json --- 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() {