]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / extensions / ConfirmEdit / tests / phpunit / ReCaptchaNoCaptchaAuthenticationRequestTest.php
diff --git a/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php b/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php
new file mode 100644 (file)
index 0000000..af81ea2
--- /dev/null
@@ -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' ] ],
+               ];
+       }
+}