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
Mass conversion to SpecialPageFactory service
[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
1208a20
..
4a171df
100644
(file)
--- a/
tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
+++ b/
tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php
@@
-5,10
+5,12
@@
* Copyright © 2011, Antoine Musso
*
* @author Antoine Musso
* Copyright © 2011, Antoine Musso
*
* @author Antoine Musso
- * @group Database
*/
*/
+use MediaWiki\MediaWikiServices;
+
/**
/**
+ * @group Database
* @covers QueryPage<extended>
*/
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
* @covers QueryPage<extended>
*/
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
@@
-20,7
+22,7
@@
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
/** List query pages that can not be tested automatically */
protected $manualTest = [
/** List query pages that can not be tested automatically */
protected $manualTest = [
- 'LinkSearchPage'
+ LinkSearchPage::class
];
/**
];
/**
@@
-30,7
+32,7
@@
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
* https://bugs.mysql.com/bug.php?id=10327
*/
protected $reopensTempTable = [
* https://bugs.mysql.com/bug.php?id=10327
*/
protected $reopensTempTable = [
-
'BrokenRedirects'
,
+
BrokenRedirects::class
,
];
/**
];
/**
@@
-43,7
+45,8
@@
class QueryAllSpecialPagesTest extends MediaWikiTestCase {
$class = $page[0];
$name = $page[1];
if ( !in_array( $class, $this->manualTest ) ) {
$class = $page[0];
$name = $page[1];
if ( !in_array( $class, $this->manualTest ) ) {
- $this->queryPages[$class] = SpecialPageFactory::getPage( $name );
+ $this->queryPages[$class] =
+ MediaWikiServices::getInstance()->getSpecialPageFactory()->getPage( $name );
}
}
}
}
}
}