projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
668891f
)
RestTest - Add test case for ping
author
Tim Otten
<totten@civicrm.org>
Wed, 1 May 2013 06:19:59 +0000
(23:19 -0700)
committer
Tim Otten
<totten@civicrm.org>
Wed, 1 May 2013 06:19:59 +0000
(23:19 -0700)
tests/phpunit/WebTest/Utils/RestTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/WebTest/Utils/RestTest.php
b/tests/phpunit/WebTest/Utils/RestTest.php
index d6ac8785922b78fbcafdc53d850f2d9950b3ba53..089378c997a0e6069827b121a16da58ff5652294 100644
(file)
--- 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;
}