6 declare(strict_types=1);
20 private $objectManagerHelper;
25 private $captchaStringResolver;
35 $this->requestMock = $this->createMock(HttpRequest::class);
36 $this->captchaStringResolver = $this->objectManagerHelper->getObject(CaptchaStringResolver::class);
41 $formId =
'contact_us';
42 $captchaValue =
'some-value';
44 $this->requestMock->expects($this->once())
46 ->with(CaptchaDataHelper::INPUT_NAME_FIELD_VALUE)
47 ->willReturn([$formId => $captchaValue]);
50 $this->captchaStringResolver->resolve($this->requestMock, $formId),
57 $formId =
'contact_us';
59 $this->requestMock->expects($this->once())
61 ->with(CaptchaDataHelper::INPUT_NAME_FIELD_VALUE)
65 $this->captchaStringResolver->resolve($this->requestMock, $formId),
testResolveWithNoFormIdInRequest()
testResolveWithFormIdSet()