You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of needing to manually mock the display and verify calls, it's nice to be able to just call HCaptcha::fake() and have it automatically set some reasonable defaults.
For the fake, any of the display methods can return an input with any value, so it can be rendered and form validation will succeed.
The getJsLink method can just return an empty string, that's not really important here.
The verify methods should return true by default with the option to mock that call as needed by means of a shouldVerify(bool) or a successfullyVerifies() and failsVerification() pair.
The text was updated successfully, but these errors were encountered:
Instead of needing to manually mock the display and verify calls, it's nice to be able to just call
HCaptcha::fake()
and have it automatically set some reasonable defaults.This will require the introduction of a contract:
For the fake, any of the display methods can return an input with any value, so it can be rendered and form validation will succeed.
The getJsLink method can just return an empty string, that's not really important here.
The verify methods should return true by default with the option to mock that call as needed by means of a
shouldVerify(bool)
or asuccessfullyVerifies()
andfailsVerification()
pair.The text was updated successfully, but these errors were encountered: