Skip to content

Commit

Permalink
MNT Fix unit test (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 27, 2024
1 parent 9de2039 commit 6eb29d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/FormField/UserFormsOptionSetFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testCustomErrorMessageValidationAttributesHTML()
$radio->Required = true;
$radio->CustomErrorMessage = 'My custom error message with \'single\' and "double" quotes';
$userFormsOptionSetField = $radio->getFormField();
$html = $userFormsOptionSetField->renderWith(UserFormsOptionSetField::class)->getValue();
$html = $userFormsOptionSetField->setTemplate(UserFormsOptionSetField::class)->Field()->getValue();
$attributesHTML = 'data-rule-required="true" data-msg-required="My custom error message with 'single' and "double" quotes"';
$this->assertTrue(strpos($html ?? '', $attributesHTML ?? '') > 0);
}
Expand Down

0 comments on commit 6eb29d3

Please sign in to comment.