Skip to content

Commit

Permalink
Merge pull request #130 from creative-commoners/pulls/5.0/remove-fiel…
Browse files Browse the repository at this point in the history
…dsvalidator

MNT Update unit test
  • Loading branch information
GuySartorelli authored Dec 12, 2024
2 parents e805958 + 8a69e30 commit cfcafd2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/EditableSpamProtectionFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cfcafd2

Please sign in to comment.