Add @covers tags

Change-Id: I1e99261acb13c86e96c1b2dd1cb61918ebc660c2
This commit is contained in:
Kunal Mehta 2018-01-23 15:59:08 -08:00
parent 869e738906
commit e1f45829d4
10 changed files with 28 additions and 0 deletions

View file

@ -2,6 +2,9 @@
use MediaWiki\Auth\AuthenticationRequestTestCase;
/**
* @covers CaptchaAuthenticationRequest
*/
class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
public function setUp() {
parent::setUp();

View file

@ -5,6 +5,7 @@ use MediaWiki\Auth\UsernameAuthenticationRequest;
use Wikimedia\TestingAccessWrapper;
/**
* @covers CaptchaPreAuthenticationProvider
* @group Database
*/
class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {

View file

@ -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 );

View file

@ -2,6 +2,9 @@
require_once __DIR__ . '/../../ReCaptcha/HTMLReCaptchaField.php';
/**
* @covers HTMLReCaptchaField
*/
class HTMLReCaptchaFieldTest extends PHPUnit_Framework_TestCase {
public function testSubmit() {
$form = new HTMLForm( [

View file

@ -2,6 +2,9 @@
require_once __DIR__ . '/../../ReCaptchaNoCaptcha/HTMLReCaptchaNoCaptchaField.php';
/**
* @covers HTMLReCaptchaNoCaptchaField
*/
class HTMLReCaptchaNoCaptchaFieldTest extends PHPUnit_Framework_TestCase {
public function testSubmit() {
$form = new HTMLForm( [

View file

@ -2,6 +2,9 @@
require_once __DIR__ . '/../../ReCaptcha/HTMLSubmittedValueField.php';
/**
* @covers HTMLSubmittedValueField
*/
class HTMLSubmittedValueFieldTest extends PHPUnit_Framework_TestCase {
public function testSubmit() {
$form = new HTMLForm( [

View file

@ -1,5 +1,8 @@
<?php
/**
* @covers QuestyCaptcha
*/
class QuestyCaptchaTest extends MediaWikiTestCase {
public function setUp() {

View file

@ -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();

View file

@ -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();

View file

@ -1,5 +1,8 @@
<?php
/**
* @covers SimpleCaptcha
*/
class CaptchaTest extends MediaWikiTestCase {
/**
* @dataProvider provideSimpleTriggersCaptcha