Beispiel #1
0
 public function testAjax()
 {
     $this->module->sendAjaxGetRequest('/info');
     $this->assertNotNull(data::get('ajax'));
     $this->module->sendAjaxPostRequest('/form/complex', array('show' => 'author'));
     $this->assertNotNull(data::get('ajax'));
     $post = data::get('form');
     $this->assertEquals('author', $post['show']);
 }