tests: Add some more @covers tags
authorKunal Mehta <legoktm@member.fsf.org>
Mon, 7 May 2018 08:22:40 +0000 (01:22 -0700)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 7 May 2018 17:49:01 +0000 (17:49 +0000)
Change-Id: I84b66879773d97593152b683ff69d034ed67aa3d

tests/phpunit/includes/MovePageTest.php
tests/phpunit/includes/OutputPageTest.php
tests/phpunit/includes/SampleTest.php
tests/phpunit/includes/auth/EmailNotificationSecondaryAuthenticationProviderTest.php
tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php

index 2bde97b..583b751 100644 (file)
@@ -43,6 +43,8 @@ class MovePageTest extends MediaWikiTestCase {
        /**
         * Integration test to catch regressions like T74870. Taken and modified
         * from SemanticMediaWiki
+        *
+        * @covers Title::moveTo
         */
        public function testTitleMoveCompleteIntegrationTest() {
                $oldTitle = Title::newFromText( 'Help:Some title' );
index a5a7364..91655ea 100644 (file)
@@ -151,6 +151,7 @@ class OutputPageTest extends MediaWikiTestCase {
 
        /**
         * @dataProvider provideCdnCacheEpoch
+        * @covers OutputPage::getCdnCacheEpoch
         */
        public function testCdnCacheEpoch( $params ) {
                $out = TestingAccessWrapper::newFromObject( $this->newInstance() );
index 3d74ae3..4747466 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+/**
+ * @coversNothing Just a sample
+ */
 class SampleTest extends MediaWikiLangTestCase {
 
        /**
index 1a7ed12..ff22def 100644 (file)
@@ -5,6 +5,9 @@ namespace MediaWiki\Auth;
 use Psr\Log\LoggerInterface;
 use Wikimedia\TestingAccessWrapper;
 
+/**
+ * @covers \MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider
+ */
 class EmailNotificationSecondaryAuthenticationProviderTest extends \PHPUnit\Framework\TestCase {
        public function testConstructor() {
                $config = new \HashConfig( [
index c101523..f45bb93 100644 (file)
@@ -170,6 +170,8 @@ class DefaultPreferencesFactoryTest extends MediaWikiTestCase {
 
        /**
         * The rclimit preference should accept non-integer input and filter it to become an integer.
+        *
+        * @covers \MediaWiki\Preferences\DefaultPreferencesFactory::saveFormData
         */
        public function testIntvalFilter() {
                // Test a string with leading zeros (i.e. not octal) and spaces.