Example #1
0
 function testPostRequest()
 {
     $this->useController('blog');
     $this->post('add', array('title' => 'A Post', 'body' => 'With a body.'));
     $this->assertEquals(array('controller' => 'blog', 'action' => 'add', 'title' => 'A Post', 'body' => 'With a body.'), $this->Request->getParams());
     $this->assertTrue($this->Request->isPost());
 }