Add @covers tags to miscellaneous tests
[lhc/web/wiklou.git] / tests / phpunit / includes / OutputPageTest.php
index 52103f9..c348834 100644 (file)
@@ -525,7 +525,7 @@ class OutputPageTest extends MediaWikiTestCase {
                $this->assertTrue( $outputPage->haveCacheVaryCookies() );
        }
 
-       /*
+       /**
         * @covers OutputPage::addCategoryLinks
         * @covers OutputPage::getCategories
         */
@@ -640,6 +640,17 @@ class OutputPageTest extends MediaWikiTestCase {
                                'not all and (min-resolution: 2dppx),' .
                                '</img/two-x.png>;rel=preload;as=image;media=(min-resolution: 2dppx)'
                        ],
+                       [
+                               [
+                                       'ResourceBasePath' => '/w',
+                                       'Logo' => '/img/default.png',
+                                       'LogoHD' => [
+                                               'svg' => '/img/vector.svg',
+                                       ],
+                               ],
+                               'Link: </img/vector.svg>;rel=preload;as=image'
+
+                       ],
                        [
                                [
                                        'ResourceBasePath' => '/w',
@@ -685,10 +696,6 @@ class NullMessageBlobStore extends MessageBlobStore {
                return [];
        }
 
-       public function insertMessageBlob( $name, ResourceLoaderModule $module, $lang ) {
-               return false;
-       }
-
        public function updateModule( $name, ResourceLoaderModule $module, $lang ) {
        }