From b213023784235527018b6f9578ca047e2ff6d5b7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 24 May 2014 17:47:47 +1200 Subject: [PATCH] add a couple of comments --- tests/phpunit/api/v3/ContactTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/phpunit/api/v3/ContactTest.php b/tests/phpunit/api/v3/ContactTest.php index 020df86080..f954342466 100644 --- a/tests/phpunit/api/v3/ContactTest.php +++ b/tests/phpunit/api/v3/ContactTest.php @@ -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', -- 2.25.1