Skip to content

Commit

Permalink
Merge pull request #15965 from colemanw/ufMatchTest
Browse files Browse the repository at this point in the history
Fix potential test glitch when repeatedly calling createLoggedInUser
  • Loading branch information
seamuslee001 authored Nov 26, 2019
2 parents d7d52f6 + 3ed232a commit a84e551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Civi/Test/ContactTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function createLoggedInUser() {
'domain_id' => \CRM_Core_Config::domainID(),
];
$contactID = $this->individualCreate($params);
$this->callAPISuccess('UFMatch', 'get', ['uf_id' => 6, 'api.UFMatch.delete' => []]);
$this->callAPISuccess('UFMatch', 'create', [
'contact_id' => $contactID,
'uf_name' => 'superman',
Expand Down

0 comments on commit a84e551

Please sign in to comment.