WebTest_Utils_Rest - Comments
authorTim Otten <totten@civicrm.org>
Tue, 7 May 2013 16:59:47 +0000 (09:59 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 7 May 2013 16:59:47 +0000 (09:59 -0700)
tests/phpunit/WebTest/Utils/RestTest.php

index 0109e768eaca0156bcd98a3551622f0558371c0c..25abceceb93b1df7f4b3a3c49be88c6882ee0141 100644 (file)
 */
 
 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;
@@ -210,7 +214,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
     $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",
@@ -242,7 +246,7 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
     $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,