mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Merge "Replace deprecated User::getEffectiveGroups"
This commit is contained in:
commit
45ae0752e5
|
@ -687,7 +687,8 @@ class AbuseFilterConsequencesTest extends MediaWikiTestCase {
|
|||
case 'degroup':
|
||||
// Aborts the hook with 'abusefilter-degrouped' error and degroups the user.
|
||||
$expectedErrors['degroup'][] = 'abusefilter-degrouped';
|
||||
$groupCheck = !in_array( 'sysop', $this->user->getEffectiveGroups() );
|
||||
$ugm = MediaWikiServices::getInstance()->getUserGroupManager();
|
||||
$groupCheck = !in_array( 'sysop', $ugm->getUserEffectiveGroups( $this->user ) );
|
||||
if ( !$groupCheck ) {
|
||||
$testErrorMessage = 'The user was not degrouped.';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue