protected function DrupalWebTestCase::drupalGetAJAX in Drupal 7
Retrieve a Drupal path or an absolute path and JSON decode the result.
4 calls to DrupalWebTestCase::drupalGetAJAX()
- AJAXFrameworkTestCase::testAJAXRender in modules/
simpletest/ tests/ ajax.test - Test that ajax_render() returns JavaScript settings generated during the page request.
- AJAXFrameworkTestCase::testAJAXRenderError in modules/
simpletest/ tests/ ajax.test - Test behavior of ajax_render_error().
- FormsFormStorageTestCase::testImmutableFormLegacyProtection in modules/
simpletest/ tests/ form.test - Verify that existing contrib code cannot overwrite immutable form state.
- MenuTestCase::testMenuParentsJsAccess in modules/
menu/ menu.test - Test administrative users other than user 1 can access the menu parents AJAX callback.
File
- modules/
simpletest/ drupal_web_test_case.php, line 2221
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));
}