X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fspecials%2FSpecialMIMESearchTest.php;h=bd952811ca603bafb18a28e153cfb6db8b536dbd;hp=e7bb35c12631fcf4dfd15950500455323afcd172;hb=8956885666e4678a8ff76f7310396d2b2874a858;hpb=134f34e04f5ca339a57c0bf13f07488376333f37 diff --git a/tests/phpunit/includes/specials/SpecialMIMESearchTest.php b/tests/phpunit/includes/specials/SpecialMIMESearchTest.php index e7bb35c126..a8459383f6 100644 --- a/tests/phpunit/includes/specials/SpecialMIMESearchTest.php +++ b/tests/phpunit/includes/specials/SpecialMIMESearchTest.php @@ -1,11 +1,18 @@ page = new MIMESearchPage; + $this->page = new MIMEsearchPage; $context = new RequestContext(); $context->setTitle( Title::makeTitle( NS_SPECIAL, 'MIMESearch' ) ); $context->setRequest( new FauxRequest() ); @@ -16,9 +23,9 @@ class SpecialMIMESearchTest extends MediaWikiTestCase { /** * @dataProvider providerMimeFiltering - * @param $par String subpage for special page - * @param $major String Major mime type we expect to look for - * @param $minor String Minor mime type we expect to look for + * @param string $par Subpage for special page + * @param string $major Major MIME type we expect to look for + * @param string $minor Minor MIME type we expect to look for */ function testMimeFiltering( $par, $major, $minor ) { $this->page->run( $par ); @@ -33,12 +40,12 @@ class SpecialMIMESearchTest extends MediaWikiTestCase { } function providerMimeFiltering() { - return array( - array( 'image/gif', 'image', 'gif' ), - array( 'image/png', 'image', 'png' ), - array( 'application/pdf', 'application', 'pdf' ), - array( 'image/*', 'image', null ), - array( 'multipart/*', 'multipart', null ), - ); + return [ + [ 'image/gif', 'image', 'gif' ], + [ 'image/png', 'image', 'png' ], + [ 'application/pdf', 'application', 'pdf' ], + [ 'image/*', 'image', null ], + [ 'multipart/*', 'multipart', null ], + ]; } }