diff --git a/tests/phpunit/ApiCoreThankIntegrationTest.php b/tests/phpunit/ApiCoreThankIntegrationTest.php index f8547642..6ac03895 100644 --- a/tests/phpunit/ApiCoreThankIntegrationTest.php +++ b/tests/phpunit/ApiCoreThankIntegrationTest.php @@ -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',