protected function DrupalWebTestCase::drupalGetAJAX in SimpleTest 7.2
Retrieve a Drupal path or an absolute path and JSON decode the result.
File
- ./
drupal_web_test_case.php, line 1773 - Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.
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));
}