protected function DrupalWebTestCase::drupalGetAJAX

7.x drupal_web_test_case.php protected DrupalWebTestCase::drupalGetAJAX($path, array $options = array(), array $headers = array())

Retrieve a Drupal path or an absolute path and JSON decode the result.

2 calls to DrupalWebTestCase::drupalGetAJAX()
AJAXFrameworkTestCase::testAJAXRender in drupal/modules/simpletest/tests/ajax.test
Test that ajax_render() returns JavaScript settings generated during the page request.
AJAXFrameworkTestCase::testAJAXRenderError in drupal/modules/simpletest/tests/ajax.test
Test behavior of ajax_render_error().

File

drupal/modules/simpletest/drupal_web_test_case.php, line 1926

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function drupalGetAJAX($path, array $options = array(), array $headers = array()) {
  return drupal_json_decode($this->drupalGet($path, $options, $headers));
}