Change-Id: I0fafe80531325a412472ab7c9fc6d81c861b3751
+ *
+ * @covers Title::getUserPermissionsErrors
+ * @covers Title::getUserPermissionsErrorsInternal
*/
class TitlePermissionTest extends MediaWikiLangTestCase {
*/
class TitlePermissionTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideValidNames
/**
* @dataProvider provideValidNames
+ * @covers Parser::setHook
*/
public function testTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
*/
public function testTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
/**
* @dataProvider provideBadNames
* @expectedException MWException
/**
* @dataProvider provideBadNames
* @expectedException MWException
+ * @covers Parser::setHook
*/
public function testBadTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
*/
public function testBadTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
/**
* @dataProvider provideValidNames
/**
* @dataProvider provideValidNames
+ * @covers Parser::setFunctionTagHook
*/
public function testFunctionTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
*/
public function testFunctionTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
/**
* @dataProvider provideBadNames
* @expectedException MWException
/**
* @dataProvider provideBadNames
* @expectedException MWException
+ * @covers Parser::setFunctionTagHook
*/
public function testBadFunctionTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
*/
public function testBadFunctionTagHooks( $tag ) {
global $wgParserConf, $wgContLang;
return trim( SearchUpdate::updateText( $text ) );
}
return trim( SearchUpdate::updateText( $text ) );
}
+ /**
+ * @covers SearchUpdate::updateText
+ */
public function testUpdateText() {
$this->assertEquals(
'test',
public function testUpdateText() {
$this->assertEquals(
'test',
+ /**
+ * @covers SearchUpdate::updateText
+ */
public function testBug32712() {
$text = "text „http://example.com“ text";
$result = $this->updateText( $text );
public function testBug32712() {
$text = "text „http://example.com“ text";
$result = $this->updateText( $text );
+/**
+ * @covers SpecialPreferences
+ */
class SpecialPreferencesTest extends MediaWikiTestCase {
/**
class SpecialPreferencesTest extends MediaWikiTestCase {
/**
*
* @author Antoine Musso
* @group Database
*
* @author Antoine Musso
* @group Database
+ *
+ * @covers SpecialRecentChanges
*/
class SpecialRecentchangesTest extends MediaWikiTestCase {
*/
class SpecialRecentchangesTest extends MediaWikiTestCase {
* @group Broken
* @group Upload
* @group Database
* @group Broken
* @group Upload
* @group Database
+ *
+ * @covers UploadFromUrl
*/
class UploadFromUrlTest extends ApiTestCase {
protected function setUp() {
*/
class UploadFromUrlTest extends ApiTestCase {
protected function setUp() {
/**
* @todo Document why we test login, since the $wgUser hack used doesn't
* require login
/**
* @todo Document why we test login, since the $wgUser hack used doesn't
* require login
*/
public function testLogin() {
$data = $this->doApiRequest( array(
*/
public function testLogin() {
$data = $this->doApiRequest( array(
<?php
/**
* @group Database
<?php
/**
* @group Database
+ *
+ * @covers UploadStash
*/
class UploadStashTest extends MediaWikiTestCase {
/**
*/
class UploadStashTest extends MediaWikiTestCase {
/**
* - Emperyan
* @see http://en.wikipedia.org/wiki/Dotted_and_dotless_I
* @dataProvider provideDottedAndDotlessI
* - Emperyan
* @see http://en.wikipedia.org/wiki/Dotted_and_dotless_I
* @dataProvider provideDottedAndDotlessI
+ * @covers Language::ucfirst
+ * @covers Language::lcfirst
*/
public function testDottedAndDotlessI( $func, $input, $inputCase, $expected ) {
if ( $func == 'ucfirst' ) {
*/
public function testDottedAndDotlessI( $func, $input, $inputCase, $expected ) {
if ( $func == 'ucfirst' ) {
+/**
+ * @covers CLDRPluralRuleEvaluator
+ */
class CLDRPluralRuleEvaluatorTest extends MediaWikiTestCase {
/**
* @dataProvider validTestCases
class CLDRPluralRuleEvaluatorTest extends MediaWikiTestCase {
/**
* @dataProvider validTestCases