/**
* Test APIv3 civicrm_mailing_group_* functions
*
- * @package CiviCRM
+ * @package CiviCRM
*/
class api_v3_MailingGroupTest extends CiviUnitTestCase {
protected $_groupID;
protected $_email;
protected $_apiversion;
-
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Mailer Group',
- 'description' => 'Test all Mailer Group methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
- function setUp() {
+ public function setUp() {
parent::setUp();
+ $this->useTransaction(TRUE);
$this->_apiversion = 3;
$this->_groupID = $this->groupCreate();
$this->_email = 'test@test.test';
}
- function tearDown() {
- $this->groupDelete($this->_groupID);
- }
-
//---------- civicrm_mailing_event_subscribe methods ---------
/**
$this->contactDelete($contactID);
}
}
-