From: Amir Sarabadani Date: Tue, 3 Jan 2017 15:59:16 +0000 (+0330) Subject: Proper instantiating of QueryPage special pages in QueryAllSpecialPagesTest X-Git-Tag: 1.31.0-rc.0~4417 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=c242b4351b7446c7c1d029c483ef12f0f1307f5c;p=lhc%2Fweb%2Fwiklou.git Proper instantiating of QueryPage special pages in QueryAllSpecialPagesTest Change-Id: If4420067011da756b8a36917f1c35fd2d380dae9 --- diff --git a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php index c1083afdbc..7b5120c78a 100644 --- a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php +++ b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php @@ -36,8 +36,9 @@ class QueryAllSpecialPagesTest extends MediaWikiTestCase { foreach ( QueryPage::getPages() as $page ) { $class = $page[0]; + $name = $page[1]; if ( !in_array( $class, $this->manualTest ) ) { - $this->queryPages[$class] = new $class; + $this->queryPages[$class] = SpecialPageFactory::getPage( $name ); } } }