From 88efba85d16b98860ccfdfcc77fedc444ca56b60 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 5 Dec 2024 17:33:10 +1300 Subject: [PATCH] API Rename validator classes --- tests/EditableSpamProtectionFieldTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/EditableSpamProtectionFieldTest.php b/tests/EditableSpamProtectionFieldTest.php index 22eb0fe..882a6c4 100644 --- a/tests/EditableSpamProtectionFieldTest.php +++ b/tests/EditableSpamProtectionFieldTest.php @@ -9,7 +9,7 @@ use SilverStripe\Dev\SapphireTest; use SilverStripe\Forms\FieldGroup; use SilverStripe\Forms\Form; -use SilverStripe\Forms\RequiredFields; +use SilverStripe\Forms\Validation\RequiredFieldsValidator; use SilverStripe\Forms\TextField; use SilverStripe\SpamProtection\EditableSpamProtectionField; use SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension; @@ -134,7 +134,7 @@ protected function getFormMock() $formMock ->expects($this->any()) ->method('getValidator') - ->willReturn(new RequiredFields()); + ->willReturn(new RequiredFieldsValidator()); return $formMock; }