$this->assertAPISuccess($result);
CRM_Contact_BAO_GroupContactCache::load($group, TRUE);
$this->assertCacheMatches(
- array(/* deceased[0], */ $deceased[1]->id, $deceased[2]->id, $living[0]->id),
+ array(/* deceased[0], */
+ $deceased[1]->id,
+ $deceased[2]->id,
+ $living[0]->id
+ ),
$group->id
);
}
// Assert $c1 not in $parent
CRM_Contact_BAO_GroupContactCache::load($parent, TRUE);
$this->assertCacheMatches(
- array( /* deceased[0], */ $deceased[1]->id, $deceased[2]->id),
+ array(/* deceased[0], */
+ $deceased[1]->id,
+ $deceased[2]->id
+ ),
$parent->id
);
/**
* Assert that the cache for a group contains exactly the listed contacts
*
- * @param $expectedContactIds
+ * @param array $expectedContactIds
* Array(int).
- * @param $groupId
- * Int.
+ * @param int $groupId
*/
public function assertCacheMatches($expectedContactIds, $groupId) {
$sql = 'SELECT contact_id FROM civicrm_group_contact_cache WHERE group_id = %1';
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
- *
*/
protected function setUp() {
$this->_testObjects = array();
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
- *
*/
protected function tearDown() {
parent::tearDown();
}
/**
- * @param $objects
- * Array DAO or BAO objects.
+ * @param array $objects
+ * DAO or BAO objects.
*/
public function registerTestObjects($objects) {
//if (is_object($objects)) {