From ad6496d4fae9833e997faf25d49bbad7c312a27b Mon Sep 17 00:00:00 2001 From: Fomafix Date: Wed, 6 Mar 2024 19:55:16 +0000 Subject: [PATCH] Use overrideConfigValue instead of setMwGlobals Change-Id: I22e77c4019cf06796c3a00191bbd7f2e3fd0b254 --- tests/phpunit/ApiCoreThankIntegrationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',