*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Verify that the REST API bindings correctly parse and authenticate requests.
+ */
class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
protected $url;
protected $api_key;
$contact = $this->webtest_civicrm_api("Contact", "create", $contactParams);
$this->nocms_contact_id = $contact["id"];
- // Use the malformed key
+ // The key associates with a real contact but not a real user
$params = array(
"entity" => "Contact",
"action" => "get",
$contact = $this->webtest_civicrm_api("Contact", "create", $contactParams);
$this->nocms_contact_id = $contact["id"];
- // Use the malformed key
+ // The key associates with a real contact but not a real user
$params = array(
"q" => "civicrm/contact/get",
"key" => $this->settings->siteKey,