From ee005cc9a2c64c6070b4a6ceb3f9353bd6274e22 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 10 Dec 2024 16:19:06 +1300 Subject: [PATCH] API Rename validator classes --- composer.json | 2 +- tests/EditableSpamProtectionFieldTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8fa18e8..e5f2355 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "phpunit/phpunit": "^11.3", "silverstripe/versioned": "^3", "squizlabs/php_codesniffer": "^3", - "silverstripe/userforms": "^7", + "silverstripe/userforms": "7.x-dev", "silverstripe/standards": "^1", "phpstan/extension-installer": "^1.3" }, 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; }