3use MediaWiki\Auth\AuthenticationRequestTestCase;
11 $this->setMwGlobals( [
12 'wgCaptchaClass' => SimpleCaptcha::class,
13 'wgCaptchaStorageClass' => CaptchaHashStore::class,
26 [ [
'123', [
'question' =>
'1+2',
'answer' =>
'3' ] ] ],
33 [
'123', [
'question' =>
'1+2',
'answer' =>
'3' ] ],
38 [
'123', [
'question' =>
'1+2',
'answer' =>
'3' ] ],
39 [
'captchaId' =>
'345' ],
43 [
'123', [
'question' =>
'1+2',
'answer' =>
'3' ] ],
44 [
'captchaId' =>
'234',
'captchaWord' =>
'5' ],
48 [
'123', [
'question' =>
'1+2',
'answer' =>
'3' ] ],
49 [
'captchaId' =>
'345',
'captchaWord' =>
'5' ],
50 [
'captchaId' =>
'345',
'captchaData' => [
'question' =>
'2+2',
'answer' =>
'4' ],
51 'captchaWord' =>
'5' ],
@covers CaptchaAuthenticationRequest
static provideGetFieldInfo()
provideLoadFromSubmission()
getInstance(array $args=[])
Generic captcha authentication request class.
static unsetInstanceForTests()
static get()
Get somewhere to store captcha data that will persist between requests.