mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-12-18 01:10:31 +00:00
Use overrideConfigValue instead of setMwGlobals
Change-Id: I22e77c4019cf06796c3a00191bbd7f2e3fd0b254
This commit is contained in:
parent
ed31e088f8
commit
ad6496d4fa
|
@ -85,7 +85,7 @@ class ApiCoreThankIntegrationTest extends ApiTestCase {
|
|||
}
|
||||
|
||||
public function testLogRequestWithDisallowedLogType() {
|
||||
$this->setMwGlobals( [ 'wgThanksAllowedLogTypes' => [] ] );
|
||||
$this->overrideConfigValue( 'ThanksAllowedLogTypes', [] );
|
||||
$this->expectApiErrorCode( 'thanks-error-invalid-log-type' );
|
||||
$this->doApiRequestWithToken( [
|
||||
'action' => 'thank',
|
||||
|
|
Loading…
Reference in a new issue