DrupalWebTestCase::drupalGetAJAX

  1. drupal
    1. 8
    2. 7
Versions
7 protected DrupalWebTestCase::drupalGetAJAX($path, array $options = array(), array $headers = array())

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

Code

modules/simpletest/drupal_web_test_case.php, line 1735

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