Add assertions for ->params and array access with json

remotes/origin/stable6
Thomas Tanghus 11 years ago
parent 973bcccd7c
commit 7cd8088845
  1. 2
      tests/lib/appframework/http/RequestTest.php

@ -115,6 +115,8 @@ class RequestTest extends \PHPUnit_Framework_TestCase {
$result = $request->post; $result = $request->post;
$this->assertEquals('John Q. Public', $result['name']); $this->assertEquals('John Q. Public', $result['name']);
$this->assertEquals('Joey', $result['nickname']); $this->assertEquals('Joey', $result['nickname']);
$this->assertEquals('Joey', $request->params['nickname']);
$this->assertEquals('Joey', $request['nickname']);
} }
public function testPatch() { public function testPatch() {

Loading…
Cancel
Save