public function setUp() {
// Connect to the database
parent::setUp();
-
- }
-
- /**
- * Tears down the fixture, for example, closes a network connection.
- * This method is called after a test is executed.
- *
- * @access protected
- */
- function tearDown() {
- $tablesToTruncate = array(
- 'civicrm_action_schedule',
- );
- $this->quickCleanup($tablesToTruncate, TRUE);
+ $this->useTransaction(TRUE);
}
-
function testSimpleActionScheduleCreate() {
$oldCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_action_schedule');
$activityContacts = CRM_Core_OptionGroup::values('activity_contacts', FALSE, FALSE, FALSE, NULL, 'name');