X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fspecials%2FQueryAllSpecialPagesTest.php;h=061e59823ada07a8d0d5bdc6d04875d6397ff712;hb=75cdcc94007dca953927b13db411aac94750b074;hp=39462b4a5ef082aa87017f68b2af934eadf57d7c;hpb=6b9c23cf6d47c4c854fd95acdbb72fd577aae8f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php index 39462b4a5e..061e59823a 100644 --- a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php +++ b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php @@ -14,9 +14,9 @@ class QueryAllSpecialPagesTest extends MediaWikiTestCase { /** List query pages that can not be tested automatically */ - protected $manualTest = array( + protected $manualTest = [ 'LinkSearchPage' - ); + ]; /** * Pages whose query use the same DB table more than once. @@ -24,9 +24,9 @@ class QueryAllSpecialPagesTest extends MediaWikiTestCase { * which does not support reopening a temporary table. See upstream bug: * http://bugs.mysql.com/bug.php?id=10327 */ - protected $reopensTempTable = array( + protected $reopensTempTable = [ 'BrokenRedirects', - ); + ]; /** * Initialize all query page objects @@ -50,14 +50,14 @@ class QueryAllSpecialPagesTest extends MediaWikiTestCase { global $wgDBtype; foreach ( $this->queryPages as $page ) { - // With MySQL, skips special pages reopening a temporary table // See http://bugs.mysql.com/bug.php?id=10327 if ( $wgDBtype === 'mysql' && in_array( $page->getName(), $this->reopensTempTable ) ) { - $this->markTestSkipped( "SQL query for page {$page->getName()} can not be tested on MySQL backend (it reopens a temporary table)" ); + $this->markTestSkipped( "SQL query for page {$page->getName()} " + . "can not be tested on MySQL backend (it reopens a temporary table)" ); continue; }