From: Umherirrender Date: Fri, 1 Feb 2019 21:13:32 +0000 (+0100) Subject: Add missing @covers to action related tests X-Git-Tag: 1.34.0-rc.0~2962^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=618a064c4c17117bf882b0e8406fb1abf878e2f5;p=lhc%2Fweb%2Fwiklou.git Add missing @covers to action related tests Change-Id: I7653b5fa6f6a3c247f735ac22fda12e7c9549786 --- diff --git a/tests/phpunit/includes/EditPageTest.php b/tests/phpunit/includes/EditPageTest.php index 55d8fbb444..f5fef61a0c 100644 --- a/tests/phpunit/includes/EditPageTest.php +++ b/tests/phpunit/includes/EditPageTest.php @@ -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' ); diff --git a/tests/phpunit/includes/MovePageTest.php b/tests/phpunit/includes/MovePageTest.php index 607f4f7a56..1b2b159f0a 100644 --- a/tests/phpunit/includes/MovePageTest.php +++ b/tests/phpunit/includes/MovePageTest.php @@ -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.'; diff --git a/tests/phpunit/includes/import/ImportTest.php b/tests/phpunit/includes/import/ImportTest.php index 3b91f5b3d5..892bdcfc0b 100644 --- a/tests/phpunit/includes/import/ImportTest.php +++ b/tests/phpunit/includes/import/ImportTest.php @@ -222,6 +222,9 @@ EOF /** * @dataProvider provideUnknownUserHandling + * @covers WikiImporter::setUsernamePrefix + * @covers ExternalUserNames::addPrefix + * @covers ExternalUserNames::applyPrefix * @param bool $assign * @param bool $create */