From 2cea9e6d6ac5d7f6d0ad65b85b2e09b5995bf527 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 3 Dec 2024 12:04:48 +1300 Subject: [PATCH] API Renameator classes valid --- tests/EditableSpamProtectionFieldTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/EditableSpamProtectionFieldTest.php b/tests/EditableSpamProtectionFieldTest.php index 22eb0fe..794f3bc 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\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; }