Use singular overrideConfigValue where possible

Doesn't really make a difference, but I find it easier to read.

Change-Id: I3d58fe7806b0428930d7cabb7936f9eb33e326a2
This commit is contained in:
thiemowmde 2024-11-07 11:02:52 +01:00
parent 8642b5fcb5
commit 920c0a13d6
3 changed files with 3 additions and 9 deletions

View file

@ -19,9 +19,7 @@ class TemplateStylesCodeEditorHooksTest extends MediaWikiLangTestCase {
* @dataProvider provideOnCodeEditorGetPageLanguage
*/
public function testOnCodeEditorGetPageLanguage( $useCodeEditor, $model, $expect ) {
$this->overrideConfigValues( [
'TemplateStylesUseCodeEditor' => $useCodeEditor,
] );
$this->overrideConfigValue( 'TemplateStylesUseCodeEditor', $useCodeEditor );
$title = Title::makeTitle( NS_TEMPLATE, 'Test.css' );
$lang = 'unchanged';

View file

@ -190,9 +190,7 @@ class TemplateStylesContentHandlerTest extends MediaWikiLangTestCase {
* @param int|null $size
*/
public function testSizeLimit( TemplateStylesContent $content, StatusValue $expectedStatus, $size = null ) {
$this->overrideConfigValues( [
'TemplateStylesMaxStylesheetSize' => $size,
] );
$this->overrideConfigValue( 'TemplateStylesMaxStylesheetSize', $size );
$contentHandler = new TemplateStylesContentHandler( $content->getModel() );
$this->assertEquals(

View file

@ -16,9 +16,7 @@ class TemplateStylesContentTest extends TextContentTest {
parent::setUp();
$this->overrideConfigValues( [
MainConfigNames::TextModelsToParse => [
'sanitized-css',
],
MainConfigNames::TextModelsToParse => [ 'sanitized-css' ],
'TemplateStylesMaxStylesheetSize' => 1024000,
] );
}