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; }