X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fuser%2FLocalIdLookupTest.php;h=58441f095f552db0627427d9a0ae9397dc841cbb;hb=f186496005a47a09aed6d46feea7302fe9d5f0e2;hp=c91d8e0cb530716b6831f574c86fadeca623db20;hpb=1dd2e07276e1deaf431ddb01c92111038f9e2cd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/user/LocalIdLookupTest.php b/tests/phpunit/includes/user/LocalIdLookupTest.php index c91d8e0cb5..58441f095f 100644 --- a/tests/phpunit/includes/user/LocalIdLookupTest.php +++ b/tests/phpunit/includes/user/LocalIdLookupTest.php @@ -8,12 +8,9 @@ class LocalIdLookupTest extends MediaWikiTestCase { private $localUsers = []; protected function setUp() { - global $wgGroupPermissions; - parent::setUp(); - $this->stashMwGlobals( [ 'wgGroupPermissions' ] ); - $wgGroupPermissions['local-id-lookup-test']['hideuser'] = true; + $this->setGroupPermissions( 'local-id-lookup-test', 'hideuser', true ); } public function addDBData() { @@ -127,9 +124,8 @@ class LocalIdLookupTest extends MediaWikiTestCase { * @param bool $localDBSet $wgLocalDatabases contains the shared DB */ public function testIsAttachedShared( $sharedDB, $sharedTable, $localDBSet ) { - global $wgDBName; $this->setMwGlobals( [ - 'wgSharedDB' => $sharedDB ? $wgDBName : null, + 'wgSharedDB' => $sharedDB ? "dummy" : null, 'wgSharedTables' => $sharedTable ? [ 'user' ] : [], 'wgLocalDatabases' => $localDBSet ? [ 'shared' ] : [], ] );