X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fspecials%2FQueryAllSpecialPagesTest.php;h=39462b4a5ef082aa87017f68b2af934eadf57d7c;hb=a8304d4c73fd04c338ae23f3028fc475921cc0fa;hp=ba845ebe98191626e30e1a7220cce3aba60e3d4d;hpb=bcb8fee4a9524cb0e47e8334c1963ac9e721d963;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php index ba845ebe98..39462b4a5e 100644 --- a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php +++ b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php @@ -8,13 +8,6 @@ * @group Database */ -if ( !defined( 'MEDIAWIKI' ) ) { - die( 1 ); -} - -global $IP; -require_once "$IP/includes/QueryPage.php"; // Needed to populate $wgQueryPages - /** * @covers QueryPage */ @@ -41,8 +34,7 @@ class QueryAllSpecialPagesTest extends MediaWikiTestCase { function __construct() { parent::__construct(); - global $wgQueryPages; - foreach ( $wgQueryPages as $page ) { + foreach ( QueryPage::getPages() as $page ) { $class = $page[0]; if ( !in_array( $class, $this->manualTest ) ) { $this->queryPages[$class] = new $class;