Skip to content

Commit

Permalink
Merge pull request #18892 from eileenmcnaughton/uf
Browse files Browse the repository at this point in the history
Hack away at false negative test fails
  • Loading branch information
colemanw authored Oct 31, 2020
2 parents 0ffdfe4 + 92bec5a commit b681360
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public function getRequired($entity) {
$requiredParams = [];
foreach ($requiredFields as $requiredField) {
$value = $this->getRequiredValue($requiredField);
if ($entity === 'UFField' && $requiredField->getName() === 'field_name') {
// This is a ruthless hack to avoid a unique constraint - but
// it's also a test class & hard to care enough to do something
// better
$value = 'activity_campaign_id';
}
$requiredParams[$requiredField->getName()] = $value;
}

Expand Down

0 comments on commit b681360

Please sign in to comment.