dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add 'mw-anonuserlink' class for anonymous users"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
specials
/
QueryAllSpecialPagesTest.php
diff --git
a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
index
3b82e07
..
39462b4
100644
(file)
--- a/
tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
+++ b/
tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
@@
-8,13
+8,9
@@
* @group Database
*/
* @group Database
*/
-if ( !defined( 'MEDIAWIKI' ) ) {
- die( 1 );
-}
-
-global $IP;
-require_once "$IP/includes/QueryPage.php"; // Needed to populate $wgQueryPages
-
+/**
+ * @covers QueryPage<extended>
+ */
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
/** List query pages that can not be tested automatically */
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
/** List query pages that can not be tested automatically */
@@
-38,8
+34,7
@@
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
function __construct() {
parent::__construct();
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;
$class = $page[0];
if ( !in_array( $class, $this->manualTest ) ) {
$this->queryPages[$class] = new $class;
@@
-51,7
+46,7
@@
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
* Test SQL for each of our QueryPages objects
* @group Database
*/
* Test SQL for each of our QueryPages objects
* @group Database
*/
- function testQuerypageSqlQuery() {
+
public
function testQuerypageSqlQuery() {
global $wgDBtype;
foreach ( $this->queryPages as $page ) {
global $wgDBtype;
foreach ( $this->queryPages as $page ) {