*/
function setUp() {
parent::setUp();
+ $this->useTransaction(TRUE);
$this->_contactId = $this->individualCreate();
);
}
- function tearDown() {
- $tablesToTruncate = array(
- 'civicrm_contact',
- 'civicrm_group',
- );
- $this->quickCleanup($tablesToTruncate);
- }
-
///////////////// civicrm_group_contact_get methods
function testGet() {
$params = array(
function testDelete() {
$params = array(
'contact_id' => $this->_contactId,
- 'group_id' => 1,
+ 'group_id' => $this->_groupId1,
);
$result = $this->callAPIAndDocument('group_contact', 'delete', $params, __FUNCTION__, __FILE__);