From 308e007535594a60680d8cdaea4f9eb221fe2798 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 30 Apr 2013 23:19:59 -0700 Subject: [PATCH] RestTest - Add test case for ping --- tests/phpunit/WebTest/Utils/RestTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/phpunit/WebTest/Utils/RestTest.php b/tests/phpunit/WebTest/Utils/RestTest.php index d6ac878592..089378c997 100644 --- a/tests/phpunit/WebTest/Utils/RestTest.php +++ b/tests/phpunit/WebTest/Utils/RestTest.php @@ -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; } -- 2.25.1