diff --git a/tests/EditableSpamProtectionFieldTest.php b/tests/EditableSpamProtectionFieldTest.php index 882a6c4..37d0536 100644 --- a/tests/EditableSpamProtectionFieldTest.php +++ b/tests/EditableSpamProtectionFieldTest.php @@ -127,15 +127,9 @@ public function testGetIcon() protected function getFormMock() { $formMock = $this->getMockBuilder(Form::class) - ->onlyMethods(['sessionMessage', 'sessionError', 'getValidator']) + ->onlyMethods(['sessionMessage', 'sessionError']) ->disableOriginalConstructor() ->getMock(); - - $formMock - ->expects($this->any()) - ->method('getValidator') - ->willReturn(new RequiredFieldsValidator()); - return $formMock; }