X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FCssContentHandlerTest.php;h=d92fb8fc159111dba99582a3ad94c8186ace7c76;hb=5256bb8ce2da1390f84ef535d990129eebd74fd2;hp=4da82745c5ede3d4e02dfb7e970da5aa140f4a87;hpb=f6a7f38a000f7b390f85c52ac9c14fe381949c37;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php b/tests/phpunit/includes/content/CssContentHandlerTest.php index 4da82745c5..d92fb8fc15 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 ); @@ -22,11 +22,20 @@ class CssContentHandlerTest extends MediaWikiLangTestCase { */ 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);" ), - ); + 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 } }