Add missing @covers to action related tests
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 1 Feb 2019 21:13:32 +0000 (22:13 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 1 Feb 2019 21:13:32 +0000 (22:13 +0100)
Change-Id: I7653b5fa6f6a3c247f735ac22fda12e7c9549786

tests/phpunit/includes/EditPageTest.php
tests/phpunit/includes/MovePageTest.php
tests/phpunit/includes/import/ImportTest.php

index 55d8fbb..f5fef61 100644 (file)
@@ -368,6 +368,9 @@ class EditPageTest extends MediaWikiLangTestCase {
                }
        }
 
+       /**
+        * @covers EditPage
+        */
        public function testUpdatePage() {
                $checkIds = [];
 
@@ -414,6 +417,9 @@ class EditPageTest extends MediaWikiLangTestCase {
                $this->assertGreaterThan( $checkIds[0], $checkIds[1], "Second event rev ID is higher" );
        }
 
+       /**
+        * @covers EditPage
+        */
        public function testUpdatePageTrx() {
                $text = "one";
                $edit = [
@@ -684,6 +690,7 @@ hello
 
        /**
         * @depends testAutoMerge
+        * @covers EditPage
         */
        public function testCheckDirectEditingDisallowed_forNonTextContent() {
                $title = Title::newFromText( 'Dummy:NonTextPageForEditPage' );
index 607f4f7..1b2b159 100644 (file)
@@ -65,6 +65,7 @@ class MovePageTest extends MediaWikiTestCase {
 
        /**
         * Test for the move operation being aborted via the TitleMove hook
+        * @covers MovePage::move
         */
        public function testMoveAbortedByTitleMoveHook() {
                $error = 'Preventing move operation with TitleMove hook.';
index 3b91f5b..892bdcf 100644 (file)
@@ -222,6 +222,9 @@ EOF
 
        /**
         * @dataProvider provideUnknownUserHandling
+        * @covers WikiImporter::setUsernamePrefix
+        * @covers ExternalUserNames::addPrefix
+        * @covers ExternalUserNames::applyPrefix
         * @param bool $assign
         * @param bool $create
         */