function testGetActivitiesCountforAdminDashboard() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesCountforNonAdminDashboard() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesCountforContactSummary() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesCountforContactSummaryWithNoActivities() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesforAdminDashboard() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesforNonAdminDashboard() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesforContactSummary() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testGetActivitiesforContactSummaryWithNoActivities() {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/activities_for_dashboard_count.xml'
)
);
function testSearch($fv, $count, $ids, $full) {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/queryDataset.xml'
)
);
// echo "testCount\n";
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/dataset.xml'
)
);
// echo "testAll\n";
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/dataset.xml'
)
);
// echo "testContactIDs\n";
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/dataset.xml'
)
);
$op = new PHPUnit_Extensions_Database_Operation_Insert;
$op->execute(
$this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(dirname(__FILE__) . '/dataset/im_test.xml')
+ $this->createFlatXMLDataSet(dirname(__FILE__) . '/dataset/im_test.xml')
);
$contactId = 69;
function testSearch($fv, $count, $ids, $full) {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/queryDataset.xml'
)
);
// Insert test data
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/dataset/data.xml'
)
);
// Insert a row in civicrm_contact creating individual contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/../../api/v3/dataset/contact_17.xml'
)
);
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/../../api/v3/dataset/email_contact_17.xml'
)
);
// Insert a row in civicrm_contact creating individual contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/../../api/v3/dataset/contact_17.xml'
)
);
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/../../api/v3/dataset/email_contact_17.xml'
)
);
$xmlFiles = glob($fixturesDir . '/*.xml');
foreach ($xmlFiles as $xmlFixture) {
$op = new PHPUnit_Extensions_Database_Operation_Insert();
- $dataset = new PHPUnit_Extensions_Database_DataSet_XMLDataSet($xmlFixture);
+ $dataset = $this->createXMLDataSet($xmlFixture);
$this->_tablesToTruncate = array_merge($this->_tablesToTruncate, $dataset->getTableNames());
$op->execute($this->_dbconn, $dataset);
}
// Insert a row in civicrm_contact creating individual contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_ind.xml'
)
);
$this->assertEquals($value, $getResult['values'][23][$key]);
}
// Check updated civicrm_contact against expected
- $expected = new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $expected = $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_ind_upd.xml'
);
- $actual = new PHPUnit_Extensions_Database_DataSet_QueryDataset(
+ $actual = new PHPUnit_Extensions_Database_DataSet_QueryDataSet(
$this->_dbconn
);
$actual->addTable('civicrm_contact');
// Insert a row in civicrm_contact creating organization contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_org.xml'
)
);
$this->callAPISuccess('Contact', 'Update', $params);
// Check updated civicrm_contact against expected
- $expected = new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $expected = $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_org_upd.xml'
);
- $actual = new PHPUnit_Extensions_Database_DataSet_QueryDataset(
+ $actual = new PHPUnit_Extensions_Database_DataSet_QueryDataSet(
$this->_dbconn
);
$actual->addTable('civicrm_contact');
// Insert a row in civicrm_contact creating household contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_hld.xml'
)
);
// Insert a row in civicrm_contact creating individual contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_ind.xml'
)
);
// Insert a row in civicrm_contact creating individual contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_17.xml'
)
);
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/email_contact_17.xml'
)
);
// Insert a row in civicrm_contact creating contact 17
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_17.xml'
)
);
// Insert a row in civicrm_contact creating contact 17
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(dirname(__FILE__) . '/dataset/contact_17.xml'
+ $this->createXMLDataSet(dirname(__FILE__) . '/dataset/contact_17.xml'
)
);
// Insert a row in civicrm_contact creating contact 17
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/contact_17.xml'
)
);
// from_email_address group
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/group_admins.xml'
)
);
// from_email_address group
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/group_subscribers.xml'
)
);
// from_email_address group
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/group_nesting.xml'
)
);
$op = new PHPUnit_Extensions_Database_Operation_Insert();
//Create the User
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/mailing_contact.xml'
)
);
//~ Create the Mailing and connections to the user
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/mailing_delivered.xml'
)
);
$op = new PHPUnit_Extensions_Database_Operation_Insert();
//Create the User
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/mailing_contact.xml'
)
);
//~ Create the Mailing and connections to the user
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_XMLDataSet(
+ $this->createXMLDataSet(
dirname(__FILE__) . '/dataset/mailing_bounced.xml'
)
);
// @TODO: Create profile with custom fields
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(
+ $this->createFlatXMLDataSet(
dirname(__FILE__) . '/dataset/uf_group_contact_activity_26.xml'
)
);
$op = new PHPUnit_Extensions_Database_Operation_Insert;
$op->execute(
$this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
+ $this->createFlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
);
$this->callAPISuccess('uf_field', 'getfields', array('cache_clear' => 1));
$op = new PHPUnit_Extensions_Database_Operation_Insert;
$op->execute(
$this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
+ $this->createFlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
);
}
$op = new PHPUnit_Extensions_Database_Operation_Insert;
$op->execute(
$this->_dbconn,
- new PHPUnit_Extensions_Database_DataSet_FlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
+ $this->createFlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
);
$this->_params = array(