From 8a69e30afff2e71ac589e05b866f41ac5068e763 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 11 Dec 2024 15:39:26 +1300 Subject: [PATCH] MNT Update unit test --- tests/EditableSpamProtectionFieldTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; }