mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-15 02:03:58 +00:00
Fix the use of globals in ApiQueryTitleBlacklistTest
Change-Id: I5461277f06f336142f2de0aaf122a8ea767d74a4
This commit is contained in:
parent
134a403b99
commit
b6325e875b
|
@ -19,7 +19,7 @@ ini_set( 'include_path', ini_get( 'include_path' ) . ':' . __DIR__ . '/../../../
|
|||
class ApiQueryTitleBlacklistTest extends ApiTestCase {
|
||||
|
||||
function setUp() {
|
||||
global $wgTitleBlacklistSources, $wgGroupPermissions;
|
||||
global $wgTitleBlacklistSources;
|
||||
parent::setUp();
|
||||
$this->doLogin();
|
||||
|
||||
|
@ -54,6 +54,8 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase {
|
|||
* Verify tboverride works
|
||||
*/
|
||||
function testTboverride() {
|
||||
global $wgGroupPermissions;
|
||||
|
||||
// Allow all users to override the titleblacklist
|
||||
$wgGroupPermissions['*']['tboverride'] = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue