MediaWiki REL1_31
ReCaptchaAuthenticationRequestTest.php
Go to the documentation of this file.
1<?php
2
4
5require_once __DIR__ . '/../../ReCaptcha/ReCaptchaAuthenticationRequest.php';
6
11 protected function getInstance( array $args = [] ) {
13 }
14
15 public function provideLoadFromSubmission() {
16 return [
17 'no challange id' => [ [], [ 'captchaWord' => 'abc' ], false ],
18 'no solution' => [ [], [ 'captchaId' => '123' ], false ],
19 'normal' => [ [], [ 'captchaId' => '123', 'captchaWord' => 'abc' ],
20 [ 'captchaId' => '123', 'captchaWord' => 'abc' ] ],
21 ];
22 }
23}
if( $line===false) $args
Definition cdb.php:64
Authentication request for ReCaptcha v1.
processing should stop and the error should be shown to the user * false
Definition hooks.txt:187