mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-28 07:50:24 +00:00
Support for PermissionManager changes at
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/502484 Change-Id: I258f02e286b6ba0387e1bff540a744fafb03dc55
This commit is contained in:
parent
bdf8c2a39b
commit
f293b3b7be
|
@ -90,6 +90,7 @@ class AbuseFilterSaveTest extends MediaWikiTestCase {
|
|||
'abusefilter-modify-global' => true,
|
||||
]
|
||||
] );
|
||||
$this->overrideMwServices();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -91,6 +91,7 @@ class AbuseFilterTest extends MediaWikiTestCase {
|
|||
],
|
||||
'wgEnableParserLimitReporting' => false
|
||||
] );
|
||||
$this->overrideMwServices();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -153,8 +154,10 @@ class AbuseFilterTest extends MediaWikiTestCase {
|
|||
$this->setGroupPermissions( [
|
||||
'AFTestUserRights' => array_fill_keys( $rights, true )
|
||||
] );
|
||||
$this->overrideMwServices();
|
||||
$previous = $user->getRights();
|
||||
$user->addGroup( 'AFTestUserRights' );
|
||||
$user->clearInstanceCache();
|
||||
$result = array_merge( $rights, $previous );
|
||||
break;
|
||||
case 'user_blocked':
|
||||
|
|
Loading…
Reference in a new issue