From 92607eecfdedd81be1b0e179800c4f6db01c835e Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Wed, 18 Dec 2019 16:06:53 +0100 Subject: [PATCH] Add missing @covers tags to tests We forgot about these when restructuring the code and introducing these new methods. Change-Id: If856a7857f2d50d1dc66a57999d98baa8b924d51 --- tests/phpunit/unit/CiteParserTagHooksTest.php | 2 ++ tests/phpunit/unit/CiteUnitTest.php | 1 + tests/phpunit/unit/ErrorReporterTest.php | 3 ++- tests/phpunit/unit/ReferencesFormatterTest.php | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/unit/CiteParserTagHooksTest.php b/tests/phpunit/unit/CiteParserTagHooksTest.php index a133dd476..0c2a2f9cd 100644 --- a/tests/phpunit/unit/CiteParserTagHooksTest.php +++ b/tests/phpunit/unit/CiteParserTagHooksTest.php @@ -48,6 +48,7 @@ class CiteParserTagHooksTest extends \MediaWikiUnitTestCase { } /** + * @covers ::citeForParser * @covers ::ref */ public function testRef() { @@ -91,6 +92,7 @@ class CiteParserTagHooksTest extends \MediaWikiUnitTestCase { } /** + * @covers ::citeForParser * @covers ::references */ public function testReferences() { diff --git a/tests/phpunit/unit/CiteUnitTest.php b/tests/phpunit/unit/CiteUnitTest.php index 0090a0f9a..f29336ca0 100644 --- a/tests/phpunit/unit/CiteUnitTest.php +++ b/tests/phpunit/unit/CiteUnitTest.php @@ -613,6 +613,7 @@ class CiteUnitTest extends \MediaWikiUnitTestCase { /** * @covers ::__clone + * @covers ::__construct */ public function testClone() { $original = $this->newCite(); diff --git a/tests/phpunit/unit/ErrorReporterTest.php b/tests/phpunit/unit/ErrorReporterTest.php index af84868d2..d8636efb0 100644 --- a/tests/phpunit/unit/ErrorReporterTest.php +++ b/tests/phpunit/unit/ErrorReporterTest.php @@ -17,8 +17,9 @@ use ParserOptions; class ErrorReporterTest extends \MediaWikiUnitTestCase { /** - * @covers ::plain * @covers ::__construct + * @covers ::getInterfaceLanguageAndSplitCache + * @covers ::plain * @dataProvider provideErrors */ public function testPlain( diff --git a/tests/phpunit/unit/ReferencesFormatterTest.php b/tests/phpunit/unit/ReferencesFormatterTest.php index fcc31fc1c..e0bc90eee 100644 --- a/tests/phpunit/unit/ReferencesFormatterTest.php +++ b/tests/phpunit/unit/ReferencesFormatterTest.php @@ -20,6 +20,7 @@ class ReferencesFormatterTest extends \MediaWikiUnitTestCase { /** * @covers ::__construct * @covers ::formatReferences + * @covers ::formatRefsList * @dataProvider provideFormatReferences */ public function testFormatReferences( array $refs, string $expectedOutput ) {