<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
*/
-
-require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
/**
/**
* Tears down the fixture, for example, closes a network connection.
+ *
* This method is called after a test is executed.
*/
protected function tearDown() {
}
/**
- * Test case for add( )
+ * Test case for add( ).
*/
public function testAdd() {
// Check if searching by parent group returns both parent and child group contacts
$searchParams = array(
- 'group' => array($parentGroup->id => 1),
+ 'group' => $parentGroup->id,
'version' => 3,
);
$result = civicrm_api('contact', 'get', $searchParams);
// Check if searching by child group returns just child group contacts
$searchParams = array(
- 'group' => array($childGroup->id => 1),
+ 'group' => $childGroup->id,
'version' => 3,
);
$result = civicrm_api('contact', 'get', $searchParams);