From 8347933423646da7b51d6b4b065528f78db7437c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 7 May 2013 09:59:47 -0700 Subject: [PATCH] WebTest_Utils_Rest - Comments --- tests/phpunit/WebTest/Utils/RestTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/WebTest/Utils/RestTest.php b/tests/phpunit/WebTest/Utils/RestTest.php index 0109e768ea..25abceceb9 100644 --- a/tests/phpunit/WebTest/Utils/RestTest.php +++ b/tests/phpunit/WebTest/Utils/RestTest.php @@ -25,6 +25,10 @@ */ 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, -- 2.25.1