]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add assertions for ->params and array access with json
authorThomas Tanghus <thomas@tanghus.net>
Mon, 30 Sep 2013 14:23:43 +0000 (16:23 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 30 Sep 2013 14:23:43 +0000 (16:23 +0200)
tests/lib/appframework/http/RequestTest.php

index 847c6610fe8354bbc99d521130d79de502cfec0d..aaa2328be1052ef5094966257919bb4fb3f1dfc0 100644 (file)
@@ -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() {