Skip to content

Commit

Permalink
More dbunit removal
Browse files Browse the repository at this point in the history
  • Loading branch information
eileen committed May 20, 2019
1 parent ae8bd42 commit cfebd64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
17 changes: 3 additions & 14 deletions tests/phpunit/CRM/Utils/DeprecatedUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,14 @@ public function testCheckParamsWithNoContactType() {
* and request the error in array format
*/
public function testCheckParamsWithDuplicateContact2() {
// Insert a row in civicrm_contact creating individual contact
$op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute($this->_dbconn,
$this->createXMLDataSet(
dirname(__FILE__) . '/../../api/v3/dataset/contact_17.xml'
)
);
$op->execute($this->_dbconn,
$this->createXMLDataSet(
dirname(__FILE__) . '/../../api/v3/dataset/email_contact_17.xml'
)
);
$this->individualCreate(['first_name' => 'Test', 'last_name' => 'Contact', 'email' => 'TestContact@example.com']);

$params = array(
$params = [
'first_name' => 'Test',
'last_name' => 'Contact',
'email' => 'TestContact@example.com',
'contact_type' => 'Individual',
);
];
$contact = _civicrm_api3_deprecated_contact_check_params($params, TRUE);
$this->assertEquals(1, $contact['is_error']);
$this->assertRegexp("/matching contacts.*17/s",
Expand Down
28 changes: 0 additions & 28 deletions tests/phpunit/api/v3/dataset/email_contact_17.xml

This file was deleted.

0 comments on commit cfebd64

Please sign in to comment.