X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FCssContentHandlerTest.php;h=8f178de26164fcfda61e3ccde463215595d7b99a;hb=255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b;hp=4da82745c5ede3d4e02dfb7e970da5aa140f4a87;hpb=9ab6887c8c93014a17afd6ab81f6bac3bf5effd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php b/tests/phpunit/includes/content/CssContentHandlerTest.php index 4da82745c5..8f178de261 100644 --- a/tests/phpunit/includes/content/CssContentHandlerTest.php +++ b/tests/phpunit/includes/content/CssContentHandlerTest.php @@ -7,10 +7,10 @@ class CssContentHandlerTest extends MediaWikiLangTestCase { * @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,12 +21,21 @@ class CssContentHandlerTest extends MediaWikiLangTestCase { * Keep this in sync with CssContentTest::provideGetRedirectTarget() */ public static function provideMakeRedirectContent() { - // @codingStandardsIgnoreStart Generic.Files.LineLength - 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);" ), - ); - // @codingStandardsIgnoreEnd + // phpcs:disable 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);" + ], + ]; + // phpcs:enable } }