From: Umherirrender Date: Fri, 1 Feb 2019 20:48:33 +0000 (+0100) Subject: Add missing @covers to parser related tests X-Git-Tag: 1.34.0-rc.0~2965^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=f45d3a797a8f2c9f9e31a590f6493942246678d5;p=lhc%2Fweb%2Fwiklou.git Add missing @covers to parser related tests Change-Id: I615ba41c9a6f235f65991549cb27003438115fe9 --- diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index f689cae73b..2fc7794b78 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -360,6 +360,10 @@ just a test" $this->assertEquals( CONTENT_MODEL_WIKITEXT, $content->getContentHandler()->getModelID() ); } + /** + * @covers ParserOptions::getRedirectTarget + * @covers ParserOptions::setRedirectTarget + */ public function testRedirectParserOption() { $title = Title::newFromText( 'testRedirectParserOption' ); diff --git a/tests/phpunit/includes/parser/ParserOutputTest.php b/tests/phpunit/includes/parser/ParserOutputTest.php index 390ea415a0..cb8257c050 100644 --- a/tests/phpunit/includes/parser/ParserOutputTest.php +++ b/tests/phpunit/includes/parser/ParserOutputTest.php @@ -849,6 +849,11 @@ EOF $this->assertFieldValues( $a, $expected ); } + /** + * @covers ParserOutput::mergeInternalMetaDataFrom + * @covers ParserOutput::getTimes + * @covers ParserOutput::resetParseStartTime + */ public function testMergeInternalMetaDataFrom_parseStartTime() { /** @var object $a */ $a = new ParserOutput(); diff --git a/tests/phpunit/includes/parser/TidyTest.php b/tests/phpunit/includes/parser/TidyTest.php index be5125c7e3..898ef2d163 100644 --- a/tests/phpunit/includes/parser/TidyTest.php +++ b/tests/phpunit/includes/parser/TidyTest.php @@ -2,6 +2,7 @@ /** * @group Parser + * @covers MWTidy */ class TidyTest extends MediaWikiTestCase {