From 6af3876b8680fd2114ccada1eb46930bd44d9274 Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Tue, 9 Jul 2024 12:40:34 +0200 Subject: [PATCH] Stop using setMwGlobals in tests In favor of the more recent, less error prone overrideConfigValue(s). Change-Id: Ie3aa275f5d670c19d3f69467ed0b9383405f1440 --- tests/phpunit/ThreadItemStoreTest.php | 2 +- tests/phpunit/integration/ApiParseDiscussionToolsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/ThreadItemStoreTest.php b/tests/phpunit/ThreadItemStoreTest.php index e0a12249a..f4247b988 100644 --- a/tests/phpunit/ThreadItemStoreTest.php +++ b/tests/phpunit/ThreadItemStoreTest.php @@ -28,7 +28,7 @@ class ThreadItemStoreTest extends IntegrationTestCase { 'otherwise they would fail due to a MySQL bug with temporary tables (T256006)' ); } if ( ExtensionRegistry::getInstance()->isLoaded( 'Liquid Threads' ) ) { - $this->setMwGlobals( 'wgLqtTalkPages', false ); + $this->overrideConfigValue( 'LqtTalkPages', false ); } } diff --git a/tests/phpunit/integration/ApiParseDiscussionToolsTest.php b/tests/phpunit/integration/ApiParseDiscussionToolsTest.php index 94388cafc..56cee20a4 100644 --- a/tests/phpunit/integration/ApiParseDiscussionToolsTest.php +++ b/tests/phpunit/integration/ApiParseDiscussionToolsTest.php @@ -16,7 +16,7 @@ class ApiParseDiscussionToolsTest extends ApiTestCase { */ public function testApiParseSections() { if ( ExtensionRegistry::getInstance()->isLoaded( 'Liquid Threads' ) ) { - $this->setMwGlobals( 'wgLqtTalkPages', false ); + $this->overrideConfigValue( 'LqtTalkPages', false ); } $params = [