add a couple of comments
authorEileen McNaughton <eileen@fuzion.co.nz>
Sat, 24 May 2014 05:47:47 +0000 (17:47 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sat, 24 May 2014 05:49:13 +0000 (17:49 +1200)
tests/phpunit/api/v3/ContactTest.php

index 020df86080f2f074c16f18474486f6d1c07d27e2..f9543424660519ae65c89aeae927760164b5b913 100644 (file)
@@ -1647,6 +1647,9 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->callAPISuccess('Contact', 'Delete', $params);
   }
 
+  /**
+   * test that permissions are respected when creating contacts
+   */
   function testContactCreationPermissions() {
     $params = array(
       'contact_type' => 'Individual', 'first_name' => 'Foo',
@@ -1732,6 +1735,9 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->callAPISuccess('contact', 'getquick', array('name' => 'b', 'check_permissions' => TRUE));
   }
 
+  /**
+   * test get ref api - gets a list of references to an entity
+   */
   function testGetReferenceCounts() {
     $result = $this->callAPISuccess('Contact', 'create', array(
       'first_name' => 'Testily',