Stop using setMwGlobals in tests

In favor of the more recent, less error prone overrideConfigValue(s).

Change-Id: Ie3aa275f5d670c19d3f69467ed0b9383405f1440
This commit is contained in:
thiemowmde 2024-07-09 12:40:34 +02:00
parent da90f4b049
commit 6af3876b86
2 changed files with 2 additions and 2 deletions

View file

@ -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 );
}
}

View file

@ -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 = [