mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
Add @covers tags
Change-Id: I1e99261acb13c86e96c1b2dd1cb61918ebc660c2
This commit is contained in:
parent
869e738906
commit
e1f45829d4
|
@ -2,6 +2,9 @@
|
|||
|
||||
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
||||
|
||||
/**
|
||||
* @covers CaptchaAuthenticationRequest
|
||||
*/
|
||||
class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
|
|
|
@ -5,6 +5,7 @@ use MediaWiki\Auth\UsernameAuthenticationRequest;
|
|||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
* @covers CaptchaPreAuthenticationProvider
|
||||
* @group Database
|
||||
*/
|
||||
class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
require_once __DIR__ . '/../../FancyCaptcha/HTMLFancyCaptchaField.php';
|
||||
|
||||
/**
|
||||
* @covers HTMLFancyCaptchaField
|
||||
*/
|
||||
class HTMLFancyCaptchaFieldTest extends PHPUnit_Framework_TestCase {
|
||||
public function testGetHTML() {
|
||||
$html = $this->getForm( [ 'imageUrl' => 'https://example.com/' ] )->getHTML( false );
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
require_once __DIR__ . '/../../ReCaptcha/HTMLReCaptchaField.php';
|
||||
|
||||
/**
|
||||
* @covers HTMLReCaptchaField
|
||||
*/
|
||||
class HTMLReCaptchaFieldTest extends PHPUnit_Framework_TestCase {
|
||||
public function testSubmit() {
|
||||
$form = new HTMLForm( [
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
require_once __DIR__ . '/../../ReCaptchaNoCaptcha/HTMLReCaptchaNoCaptchaField.php';
|
||||
|
||||
/**
|
||||
* @covers HTMLReCaptchaNoCaptchaField
|
||||
*/
|
||||
class HTMLReCaptchaNoCaptchaFieldTest extends PHPUnit_Framework_TestCase {
|
||||
public function testSubmit() {
|
||||
$form = new HTMLForm( [
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
require_once __DIR__ . '/../../ReCaptcha/HTMLSubmittedValueField.php';
|
||||
|
||||
/**
|
||||
* @covers HTMLSubmittedValueField
|
||||
*/
|
||||
class HTMLSubmittedValueFieldTest extends PHPUnit_Framework_TestCase {
|
||||
public function testSubmit() {
|
||||
$form = new HTMLForm( [
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @covers QuestyCaptcha
|
||||
*/
|
||||
class QuestyCaptchaTest extends MediaWikiTestCase {
|
||||
|
||||
public function setUp() {
|
||||
|
|
|
@ -4,6 +4,9 @@ use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|||
|
||||
require_once __DIR__ . '/../../ReCaptcha/ReCaptchaAuthenticationRequest.php';
|
||||
|
||||
/**
|
||||
* @covers ReCaptchaAuthenticationRequest
|
||||
*/
|
||||
class ReCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
||||
protected function getInstance( array $args = [] ) {
|
||||
return new ReCaptchaAuthenticationRequest();
|
||||
|
|
|
@ -4,6 +4,9 @@ use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|||
|
||||
require_once __DIR__ . '/../../ReCaptchaNoCaptcha/ReCaptchaNoCaptchaAuthenticationRequest.php';
|
||||
|
||||
/**
|
||||
* @covers ReCaptchaNoCaptchaAuthenticationRequest
|
||||
*/
|
||||
class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
||||
protected function getInstance( array $args = [] ) {
|
||||
return new ReCaptchaNoCaptchaAuthenticationRequest();
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @covers SimpleCaptcha
|
||||
*/
|
||||
class CaptchaTest extends MediaWikiTestCase {
|
||||
/**
|
||||
* @dataProvider provideSimpleTriggersCaptcha
|
||||
|
|
Loading…
Reference in a new issue