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