GoogleReCaptchaV3::CAPTCHA_NAME =>
[ 'name' => GoogleReCaptchaV3::CAPTCHA_NAME,
'isActive' => true,
'config' =>
[ 'secretKey' =>
$secretKey,
'thresholdScore' =>
$configThreshold,
],
],
]);
$activeCaptchaConfig =
$this->systemConfigService->
get('core.basicInformation.activeCaptchasV2'
);
$captcha =
new GoogleReCaptchaV3($client);
static::
assertEquals($captcha->
isValid($request,
$activeCaptchaConfig[$captcha->
getName()]),
$shouldBeValid);
} public static function requestDataIsValidProvider(): array
{ return [ 'request with no captcha input' =>
[ self::
getRequest(),
new MockHandler(),
self::IS_INVALID,