Skip to content

Commit

Permalink
in master the ufmatch is already created
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Sep 9, 2024
1 parent 4761b51 commit a828700
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/src/FunctionalJavascript/WebformCivicrmTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,7 @@ protected function setUp(): void {
'id' => 'civicrm_webform_test',
'title' => 'CiviCRM Webform Test.' . $CiviCRM_version,
]);
$this->rootUserCid = $this->createIndividual()['id'];
// Create CiviCRM contact for rootUser.
$this->utils->wf_civicrm_api('UFMatch', 'create', [
'uf_id' => $this->rootUser->id(),
'uf_name' => $this->rootUser->getAccountName(),
'contact_id' => $this->rootUserCid,
]);
$this->rootUserCid = $this->getUFMatchRecord($this->rootUser->id())['contact_id'];
}

protected function tearDown(): void {
Expand Down

0 comments on commit a828700

Please sign in to comment.