|
|
|
@ -109,12 +109,12 @@ class CAPTCHATest extends CIDatabaseTestCase
|
|
|
|
|
$this->assertContains('missing-input', $this->library->verifyCaptchaResponse('')['errorCodes']); |
|
|
|
|
$this->assertContains('invalid-input-response', $this->library->verifyCaptchaResponse('0123456789')['errorCodes']); |
|
|
|
|
|
|
|
|
|
$config->captchaType = 'hcaptcha'; |
|
|
|
|
$this->library = new Aauth($config, null); |
|
|
|
|
$this->assertContains('invalid-input-response', $this->library->verifyCaptchaResponse('0123456789')['errorCodes']); |
|
|
|
|
// $config->captchaType = 'hcaptcha'; |
|
|
|
|
// $config->captchaSiteKey = '10000000-ffff-ffff-ffff-000000000001'; |
|
|
|
|
// $config->captchaSecret = '0x0000000000000000000000000000000000000000'; |
|
|
|
|
// $this->library = new Aauth($config, null); |
|
|
|
|
|
|
|
|
|
$config->captchaType = 'hcaptcha'; |
|
|
|
|
$this->library = new Aauth($config, null); |
|
|
|
|
$this->assertTrue($this->library->verifyCaptchaResponse('testing')['success']); |
|
|
|
|
// $this->assertContains('invalid-input-response', $this->library->verifyCaptchaResponse('0123456789')['errorCodes']); |
|
|
|
|
// $this->assertTrue($this->library->verifyCaptchaResponse('testing')['success']); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|