Skip to content

Commit

Permalink
address test fail across versions
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Oct 19, 2023
1 parent 8a3e6f2 commit 3a494e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function testSubmitWebform() {
$this->editCivicrmOptionElement('edit-webform-ui-elements-civicrm-1-contact-1-other-group-operations', FALSE, FALSE, NULL, 'checkboxes');

$majorDonorTagID = $this->utils->wf_civicrm_api('Tag', 'get', [
'name' => "Major Donor",
'name' => (version_compare(\CRM_Core_BAO_Domain::version(), '5.68.alpha1', '<') ? "Major Donor" : "Major_Donor"),
])['id'];
// Make Major Donor as the default option.
$this->editCivicrmOptionElement('edit-webform-ui-elements-civicrm-1-contact-1-other-tag-operations', TRUE, FALSE, $majorDonorTagID);
Expand Down

0 comments on commit 3a494e8

Please sign in to comment.