From f45d3a797a8f2c9f9e31a590f6493942246678d5 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 1 Feb 2019 21:48:33 +0100 Subject: [PATCH] Add missing @covers to parser related tests Change-Id: I615ba41c9a6f235f65991549cb27003438115fe9 --- tests/phpunit/includes/content/WikitextContentTest.php | 4 ++++ tests/phpunit/includes/parser/ParserOutputTest.php | 5 +++++ tests/phpunit/includes/parser/TidyTest.php | 1 + 3 files changed, 10 insertions(+) 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 { -- 2.20.1