Add some missing @covers tags
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 30 Jan 2019 08:23:48 +0000 (00:23 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 3 Feb 2019 05:53:40 +0000 (21:53 -0800)
Change-Id: Idb9af9515702ee9748755d7799663713b2283647

tests/phpunit/includes/MessageTest.php
tests/phpunit/includes/api/ApiErrorFormatterTest.php
tests/phpunit/includes/content/MessageContentTest.php
tests/phpunit/includes/content/TextContentTest.php
tests/phpunit/includes/content/WikitextContentHandlerTest.php
tests/phpunit/includes/password/PasswordPolicyChecksTest.php

index d75c0e5..5d77ceb 100644 (file)
@@ -400,6 +400,9 @@ class MessageTest extends MediaWikiLangTestCase {
                $this->assertSame( 'example &amp;', $msg->escaped() );
        }
 
+       /**
+        * @covers CoreTagHooks::html
+        */
        public function testRawHtmlInMsg() {
                $this->setMwGlobals( 'wgRawHtml', true );
                // We have to reset the core hook registration.
index d7628e0..2eec176 100644 (file)
@@ -634,6 +634,11 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
                ];
        }
 
+       /**
+        * @covers ApiErrorFormatter::addMessagesFromStatus
+        * @covers ApiErrorFormatter::addWarningOrError
+        * @covers ApiErrorFormatter::formatMessageInternal
+        */
        public function testAddMessagesFromStatus_filter() {
                $result = new ApiResult( 8388608 );
                $formatter = new ApiErrorFormatter( $result, Language::factory( 'qqx' ), 'plaintext', false );
index 60f68e7..5df7cca 100644 (file)
@@ -2,6 +2,7 @@
 
 /**
  * @group ContentHandler
+ * @covers MessageContent
  */
 class MessageContentTest extends MediaWikiLangTestCase {
 
index 8e537d6..ecd23f1 100644 (file)
@@ -487,6 +487,10 @@ class TextContentTest extends MediaWikiLangTestCase {
                ];
        }
 
+       /**
+        * @covers TextContent::__construct
+        * @covers TextContentHandler::serializeContent
+        */
        public function testSerialize() {
                $cnt = $this->newContent( 'testing text' );
 
index 5f78a5c..b372e37 100644 (file)
@@ -366,6 +366,9 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
                $this->assertEquals( 'This is file content', $data['file_text'] );
        }
 
+       /**
+        * @covers ContentHandler::getSecondaryDataUpdates
+        */
        public function testGetSecondaryDataUpdates() {
                $title = Title::newFromText( 'Somefile.jpg', NS_FILE );
                $content = new WikitextContent( '' );
@@ -379,6 +382,9 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
                $this->assertEquals( [], $updates );
        }
 
+       /**
+        * @covers ContentHandler::getDeletionUpdates
+        */
        public function testGetDeletionUpdates() {
                $title = Title::newFromText( 'Somefile.jpg', NS_FILE );
                $content = new WikitextContent( '' );
index 9f9824f..457030f 100644 (file)
@@ -181,6 +181,7 @@ class PasswordPolicyChecksTest extends MediaWikiTestCase {
        /**
         * Verify that all password policy description messages actually exist.
         * Messages used on Special:PasswordPolicies
+        * @coversNothing
         */
        public function testPasswordPolicyDescriptionsExist() {
                global $wgPasswordPolicy;