*/
class CRM_Case_BAO_CaseTest extends CiviUnitTestCase {
+ const TABLES_TO_TRUNCATE = [
+ 'civicrm_activity',
+ 'civicrm_group_contact',
+ 'civicrm_contact',
+ 'civicrm_custom_group',
+ 'civicrm_custom_field',
+ 'civicrm_case',
+ 'civicrm_case_contact',
+ 'civicrm_case_activity',
+ 'civicrm_case_type',
+ 'civicrm_file',
+ 'civicrm_entity_file',
+ 'civicrm_activity_contact',
+ 'civicrm_managed',
+ 'civicrm_relationship',
+ 'civicrm_relationship_type',
+ ];
+
public function setUp(): void {
parent::setUp();
- $this->tablesToTruncate = [
- 'civicrm_activity',
- 'civicrm_group_contact',
- 'civicrm_contact',
- 'civicrm_custom_group',
- 'civicrm_custom_field',
- 'civicrm_case',
- 'civicrm_case_contact',
- 'civicrm_case_activity',
- 'civicrm_case_type',
- 'civicrm_file',
- 'civicrm_entity_file',
- 'civicrm_activity_contact',
- 'civicrm_managed',
- 'civicrm_relationship',
- 'civicrm_relationship_type',
- ];
-
- $this->quickCleanup($this->tablesToTruncate);
+ $this->quickCleanup(self::TABLES_TO_TRUNCATE);
$this->loadAllFixtures();
}
protected function tearDown(): void {
- $this->quickCleanup($this->tablesToTruncate, TRUE);
+ $this->quickCleanup(self::TABLES_TO_TRUNCATE, TRUE);
parent::tearDown();
}