Fix the use of globals in ApiQueryTitleBlacklistTest

Change-Id: I5461277f06f336142f2de0aaf122a8ea767d74a4
This commit is contained in:
Marius Hoch 2013-05-15 14:14:43 +02:00
parent 134a403b99
commit b6325e875b

View file

@ -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;