Use overrideConfigValue instead of setMwGlobals

Change-Id: I22e77c4019cf06796c3a00191bbd7f2e3fd0b254
This commit is contained in:
Fomafix 2024-03-06 19:55:16 +00:00
parent ed31e088f8
commit ad6496d4fa

View file

@ -85,7 +85,7 @@ class ApiCoreThankIntegrationTest extends ApiTestCase {
} }
public function testLogRequestWithDisallowedLogType() { public function testLogRequestWithDisallowedLogType() {
$this->setMwGlobals( [ 'wgThanksAllowedLogTypes' => [] ] ); $this->overrideConfigValue( 'ThanksAllowedLogTypes', [] );
$this->expectApiErrorCode( 'thanks-error-invalid-log-type' ); $this->expectApiErrorCode( 'thanks-error-invalid-log-type' );
$this->doApiRequestWithToken( [ $this->doApiRequestWithToken( [
'action' => 'thank', 'action' => 'thank',