'civicrm_acl_contact_cache',
'civicrm_relationship_type',
'civicrm_saved_search',
- 'civicrm_contact_type',
'civicrm_mailing_component',
'civicrm_mailing_bounce_type',
'civicrm_mailing_bounce_pattern',
$this->tempDirs = array();
}
+ /**
+ * Create default domain contacts for the two domains added during test class
+ * database population.
+ */
+ public function createDomainContacts() {
+ $default_domain_contact = $this->organizationCreate();
+ $second_domain_contact = $this->organizationCreate();
+ }
+
/**
* Common teardown functions for all unit tests
*/
$session->set('userID', NULL);
$tablesToTruncate = array('civicrm_contact');
$this->quickCleanup($tablesToTruncate);
+ $this->createDomainContacts();
$this->cleanTempDirs();
$this->unsetExtensionSystem();
CRM_Core_Transaction::forceRollbackIfEnabled();
$this->assertFalse(empty($result['values']), "In line " . __LINE__);
$this->assertEquals($result['values'][1]['mailing_id'], 1, "In line " . __LINE__);
$this->assertEquals($result['values'][1]['subject'], "Some Subject", "In line " . __LINE__);
- $this->assertEquals($result['values'][1]['creator_id'], 1, "In line " . __LINE__);
+ $this->assertEquals($result['values'][1]['creator_id'], 3, "In line " . __LINE__);
$this->assertEquals($result['values'][1]['creator_name'], "xyz1, abc1", "In line " . __LINE__);
}
$this->assertFalse(empty($result['values']), "In line " . __LINE__);
$this->assertEquals($result['values'][2]['mailing_id'], 2, "In line " . __LINE__);
$this->assertEquals($result['values'][2]['subject'], "Some Subject", "In line " . __LINE__);
- $this->assertEquals($result['values'][2]['creator_id'], 1, "In line " . __LINE__);
+ $this->assertEquals($result['values'][2]['creator_id'], 3, "In line " . __LINE__);
$this->assertEquals($result['values'][2]['creator_name'], "xyz1, abc1", "In line " . __LINE__);
}
}
<value>1</value> <!-- is_completed -->
<null /> <!-- msg_template_id -->
<null /> <!-- override_verp -->
- <value>1</value> <!-- created_id -->
+ <value>3</value> <!-- created_id -->
<null /> <!-- created_date -->
<null /> <!-- scheduled_id -->
<null /> <!-- scheduled_date -->
<value>1</value> <!-- is_completed -->
<null /> <!-- msg_template_id -->
<null /> <!-- override_verp -->
- <value>1</value> <!-- created_id -->
+ <value>3</value> <!-- created_id -->
<null /> <!-- created_date -->
<null /> <!-- scheduled_id -->
<null /> <!-- scheduled_date -->