<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
* 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;
public function setUp() {
parent::setUp();
}
-/**
- * (non-PHPdoc)
- * @see CiviUnitTestCase::tearDown()
- */
+
+ /**
+ * (non-PHPdoc)
+ * @see CiviUnitTestCase::tearDown()
+ */
public function tearDown() {
$tablesToTruncate = array(
'civicrm_activity',
}
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'));
$values = $this->callAPISuccess('custom_field', 'getoptions', array('field' => 'custom_group_id'));
$this->assertTrue($values['count'] == 1, 'check that cached value is not retained for custom_group_id');
}
+
}