$this->assertAPISuccess($result);
}
- /**
- * Test civicrm_group_organization_get with wrong params.
- *
- * @dataProvider versionThreeAndFour
- */
- public function testGroupOrganizationGetWithWrongParams() {
- $params = 'groupOrg';
- $result = $this->callAPIFailure('group_organization', 'get', $params);
- $this->assertEquals($result['error_message'], 'Input variable `params` is not an array');
- }
-
/**
* Test civicrm_group_organization_get invalid keys.
*
$this->assertEquals($result['error_message'], 'Mandatory key(s) missing from params array: group_id, organization_id');
}
- /**
- * Check with invalid params.
- *
- * @dataProvider versionThreeAndFour
- */
- public function testGroupOrganizationCreateParamsNotArray() {
- $params = 'group_org';
- $result = $this->callAPIFailure('group_organization', 'create', $params);
- $this->assertEquals($result['error_message'], 'Input variable `params` is not an array');
- }
-
/**
* Check with invalid params keys.
*
///////////////// civicrm_group_organization_remove methods
- /**
- * Test civicrm_group_organization_remove with params not an array.
- *
- * @dataProvider versionThreeAndFour
- */
- public function testGroupOrganizationDeleteParamsNotArray() {
- $params = 'delete';
- $result = $this->callAPIFailure('group_organization', 'delete', $params);
- $this->assertEquals($result['error_message'], 'Input variable `params` is not an array');
- }
-
/**
* Test civicrm_group_organization_remove with empty params.
*