Merge "Ignore DBPerformance warnings for ?action=purge for users with "purge""
[lhc/web/wiklou.git] / tests / phpunit / includes / content / CssContentHandlerTest.php
index e1785a9..d92fb8f 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 
-class CssContentHandlerTest extends MediaWikiTestCase {
+class CssContentHandlerTest extends MediaWikiLangTestCase {
 
        /**
         * @dataProvider provideMakeRedirectContent
         * @covers CssContentHandler::makeRedirectContent
         */
        public function testMakeRedirectContent( $title, $expected ) {
-               $this->setMwGlobals( array(
+               $this->setMwGlobals( [
                        'wgServer' => '//example.org',
                        'wgScript' => '/w/index.php',
-               ) );
+               ] );
                $ch = new CssContentHandler();
                $content = $ch->makeRedirectContent( Title::newFromText( $title ) );
                $this->assertInstanceOf( 'CssContent', $content );
@@ -21,10 +21,21 @@ class CssContentHandlerTest extends MediaWikiTestCase {
         * Keep this in sync with CssContentTest::provideGetRedirectTarget()
         */
        public static function provideMakeRedirectContent() {
-               return array(
-                       array( 'MediaWiki:MonoBook.css', "/* #REDIRECT */@import url(//example.org/w/index.php?title=MediaWiki:MonoBook.css&action=raw&ctype=text/css);" ),
-                       array( 'User:FooBar/common.css', "/* #REDIRECT */@import url(//example.org/w/index.php?title=User:FooBar/common.css&action=raw&ctype=text/css);" ),
-                       array( 'Gadget:FooBaz.css', "/* #REDIRECT */@import url(//example.org/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);" ),
-               );
+               // @codingStandardsIgnoreStart Generic.Files.LineLength
+               return [
+                       [
+                               'MediaWiki:MonoBook.css',
+                               "/* #REDIRECT */@import url(//example.org/w/index.php?title=MediaWiki:MonoBook.css&action=raw&ctype=text/css);"
+                       ],
+                       [
+                               'User:FooBar/common.css',
+                               "/* #REDIRECT */@import url(//example.org/w/index.php?title=User:FooBar/common.css&action=raw&ctype=text/css);"
+                       ],
+                       [
+                               'Gadget:FooBaz.css',
+                               "/* #REDIRECT */@import url(//example.org/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);"
+                       ],
+               ];
+               // @codingStandardsIgnoreEnd
        }
 }