From 4df6030f404d025befa657e159d0c35764a85221 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 23 Aug 2024 14:39:33 +1200 Subject: [PATCH] MNT Fix unit test --- tests/php/FormField/UserFormsOptionSetFieldTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }