Ladsgroup has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/330232 )
Change subject: Proper instantiating of QueryPage special pages in QueryAllSpecialPagesTest ...................................................................... Proper instantiating of QueryPage special pages in QueryAllSpecialPagesTest Change-Id: If4420067011da756b8a36917f1c35fd2d380dae9 --- M tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/32/330232/1 diff --git a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php index c1083af..7b5120c 100644 --- a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php +++ b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php @@ -36,8 +36,9 @@ 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 ); } } } -- To view, visit https://gerrit.wikimedia.org/r/330232 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If4420067011da756b8a36917f1c35fd2d380dae9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits