X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fpage%2FImagePage404Test.php;h=4faace2160f14a44ee99504bd7d48b602b407af9;hb=6bfa7c37540da7605e88c10caf0295ae8ff45723;hp=197a2b32e0e7519cc880e6c641f8e767fb812a12;hpb=e100650952565562a16bbc562c8706b12c621981;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/page/ImagePage404Test.php b/tests/phpunit/includes/page/ImagePage404Test.php index 197a2b32e0..4faace2160 100644 --- a/tests/phpunit/includes/page/ImagePage404Test.php +++ b/tests/phpunit/includes/page/ImagePage404Test.php @@ -5,17 +5,17 @@ class ImagePage404Test extends MediaWikiMediaTestCase { protected function getRepoOptions() { - return parent::getRepoOptions() + array( 'transformVia404' => true ); + return parent::getRepoOptions() + [ 'transformVia404' => true ]; } function setUp() { - $this->setMwGlobals( 'wgImageLimits', array( - array( 320, 240 ), - array( 640, 480 ), - array( 800, 600 ), - array( 1024, 768 ), - array( 1280, 1024 ) - ) ); + $this->setMwGlobals( 'wgImageLimits', [ + [ 320, 240 ], + [ 640, 480 ], + [ 800, 600 ], + [ 1024, 768 ], + [ 1280, 1024 ] + ] ); parent::setUp(); } @@ -28,6 +28,7 @@ class ImagePage404Test extends MediaWikiMediaTestCase { } /** + * @covers ImagePage::getThumbSizes * @dataProvider providerGetThumbSizes * @param string $filename * @param int $expectedNumberThumbs How many thumbnails to show @@ -43,11 +44,11 @@ class ImagePage404Test extends MediaWikiMediaTestCase { } function providerGetThumbSizes() { - return array( - array( 'animated.gif', 6 ), - array( 'Toll_Texas_1.svg', 6 ), - array( '80x60-Greyscale.xcf', 6 ), - array( 'jpeg-comment-binary.jpg', 6 ), - ); + return [ + [ 'animated.gif', 6 ], + [ 'Toll_Texas_1.svg', 6 ], + [ '80x60-Greyscale.xcf', 6 ], + [ 'jpeg-comment-binary.jpg', 6 ], + ]; } }