* @return int groupId of created group
*
*/
- function groupCreate($params = NULL) {
- if ($params === NULL) {
- $params = array(
+ function groupCreate($params = array()) {
+ $params = array_merge(array(
'name' => 'Test Group 1',
'domain_id' => 1,
'title' => 'New Test Group Created',
'1' => 1,
'2' => 1,
),
- );
- }
+ ), $params);
$result = $this->callAPISuccess('Group', 'create', $params);
return $result['id'];
}
function testGetGroupIDFromContact() {
- $groupId = $this->groupCreate(NULL);
+ $groupId = $this->groupCreate();
$description = "Get all from group and display contacts";
$subfile = "GroupFilterUsingContactAPI";
$params = array(
'visibility' => 'User and User Admin Only',
);
- $this->_groupId2 = $this->groupCreate($group, 3);
+ $this->_groupId2 = $this->groupCreate();
$params = array(
'contact_id.1' => $this->_contactId,
'group_id' => $this->_groupId2,
protected function setUp() {
$this->_apiversion = 3;
parent::setUp();
- $this->_groupID = $this->groupCreate(NULL);
+ $this->_groupID = $this->groupCreate();
$this->_orgID = $this->organizationCreate(NULL);
}
$this->_apiversion = 3;
parent::setUp();
- $this->_groupID = $this->groupCreate(NULL, 3);
+ $this->_groupID = $this->groupCreate();
}
function tearDown() {
function setUp() {
parent::setUp();
$this->_apiversion = 3;
- $this->_groupID = $this->groupCreate(NULL);
+ $this->_groupID = $this->groupCreate();
$this->_email = 'test@test.test';
}
function setUp() {
parent::setUp();
- $this->_groupID = $this->groupCreate(NULL);
+ $this->_groupID = $this->groupCreate();
$this->_email = 'test@test.test';
$this->_params = array(
'subject' => 'maild',