mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 09:43:30 +00:00
Stop using setMwGlobals in tests
In favor of the more recent, less error prone overrideConfigValue(s). Change-Id: Ie3aa275f5d670c19d3f69467ed0b9383405f1440
This commit is contained in:
parent
da90f4b049
commit
6af3876b86
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue