Skip to content

Commit

Permalink
MNT Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 11, 2024
1 parent e805958 commit 8a69e30
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 8a69e30

Please sign in to comment.