diff --git a/tests/php/FormField/UserFormsOptionSetFieldTest.php b/tests/php/FormField/UserFormsOptionSetFieldTest.php index 9d7096140..77d6416ae 100644 --- a/tests/php/FormField/UserFormsOptionSetFieldTest.php +++ b/tests/php/FormField/UserFormsOptionSetFieldTest.php @@ -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); }