function AJAXTestCase::drupalGetAJAX in SimpleTest 7
3 calls to AJAXTestCase::drupalGetAJAX()
- AJAXCommandsTestCase::testAJAXRender in tests/
ajax.test - Test ajax_command_settings().
- AJAXFrameworkTestCase::testAJAXRender in tests/
ajax.test - Test proper passing of JavaScript settings via ajax_render().
- AJAXFrameworkTestCase::testAJAXRenderError in tests/
ajax.test - Test behavior of ajax_render_error().
File
- tests/
ajax.test, line 8
Class
Code
function drupalGetAJAX($path, $query = array()) {
$this
->drupalGet($path, array(
'query' => $query,
));
return json_decode($this->content, TRUE);
}