RestTest - Add test case for ping
authorTim Otten <totten@civicrm.org>
Wed, 1 May 2013 06:19:59 +0000 (23:19 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 1 May 2013 06:19:59 +0000 (23:19 -0700)
tests/phpunit/WebTest/Utils/RestTest.php

index d6ac8785922b78fbcafdc53d850f2d9950b3ba53..089378c997a0e6069827b121a16da58ff5652294 100644 (file)
@@ -215,6 +215,17 @@ class WebTest_Utils_RestTest extends CiviSeleniumTestCase {
       1, // is_error
     );
 
+    // q=civicrm/entity/action: valid apiKey, invalid entity+action
+    $cases[] = array(
+      array( // query
+        "q" => "civicrm/ping",
+        "key" => $this->settings->siteKey,
+        "json" => "1",
+        "api_key" => $this->settings->adminApiKey,
+      ),
+      0, // is_error
+    );
+
     return $cases;
   }