diff options
Diffstat (limited to 'www/wiki/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php')
-rw-r--r-- | www/wiki/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/wiki/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php b/www/wiki/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php new file mode 100644 index 00000000..d4917b51 --- /dev/null +++ b/www/wiki/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php @@ -0,0 +1,21 @@ +<?php + +use MediaWiki\Auth\AuthenticationRequestTestCase; + +require_once __DIR__ . '/../../ReCaptchaNoCaptcha/ReCaptchaNoCaptchaAuthenticationRequest.php'; + +/** + * @covers ReCaptchaNoCaptchaAuthenticationRequest + */ +class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase { + protected function getInstance( array $args = [] ) { + return new ReCaptchaNoCaptchaAuthenticationRequest(); + } + + public function provideLoadFromSubmission() { + return [ + 'no proof' => [ [], [], false ], + 'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ], + ]; + } +} |