mediawiki-extensions-Confir.../tests/phpunit/ReCaptchaAuthenticationRequestTest.php
Max Semenik 5b7a36a521 Clean up some phpcs problems
Change-Id: Ie956fe86184535a376d0398483ac3c853fa9127c
2018-07-12 23:13:58 +00:00

22 lines
617 B
PHP

<?php
use MediaWiki\Auth\AuthenticationRequestTestCase;
/**
* @covers ReCaptchaAuthenticationRequest
*/
class ReCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
protected function getInstance( array $args = [] ) {
return new ReCaptchaAuthenticationRequest();
}
public function provideLoadFromSubmission() {
return [
'no challange id' => [ [], [ 'captchaWord' => 'abc' ], false ],
'no solution' => [ [], [ 'captchaId' => '123' ], false ],
'normal' => [ [], [ 'captchaId' => '123', 'captchaWord' => 'abc' ],
[ 'captchaId' => '123', 'captchaWord' => 'abc' ] ],
];
}
}