Merge pull request #4931 from davecivicrm/INFRA-132
[civicrm-core.git] / tests / phpunit / api / v3 / ACLCachingTest.php
index 94b63774ee6bb35813347737bc726552a7127fec..28695e107783344a8d08416e7e18e03461c3032f 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
@@ -31,10 +30,9 @@ require_once 'CiviTest/CiviUnitTestCase.php';
 /**
  * This class is intended to test ACL permission using the multisite module
  *
- *  @package CiviCRM_APIv3
- *  @subpackage API_Contact
+ * @package CiviCRM_APIv3
+ * @subpackage API_Contact
  */
-
 class api_v3_ACLCachingTest extends CiviUnitTestCase {
   protected $_apiversion = 3;
   protected $_params;
@@ -44,10 +42,11 @@ class api_v3_ACLCachingTest extends CiviUnitTestCase {
   public function setUp() {
     parent::setUp();
   }
-/**
- * (non-PHPdoc)
- * @see CiviUnitTestCase::tearDown()
- */
+
+  /**
+   * (non-PHPdoc)
+   * @see CiviUnitTestCase::tearDown()
+   */
   public function tearDown() {
     $tablesToTruncate = array(
       'civicrm_activity',
@@ -56,7 +55,7 @@ class api_v3_ACLCachingTest extends CiviUnitTestCase {
   }
 
   public function testActivityCreateCustomBefore() {
-    $values = $this->callAPISuccess('custom_field', 'getoptions', array('field' => 'custom_group_id',));
+    $values = $this->callAPISuccess('custom_field', 'getoptions', array('field' => 'custom_group_id'));
     $this->assertTrue($values['count'] == 0);
     $this->CustomGroupCreate(array('extends' => 'Activity'));
     $groupCount = $this->callAPISuccess('custom_group', 'getcount', array('extends' => 'activity'));
@@ -65,4 +64,3 @@ class api_v3_ACLCachingTest extends CiviUnitTestCase {
     $this->assertTrue($values['count'] == 1, 'check that cached value is not retained for custom_group_id');
   }
 }
-