mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-13 18:26:59 +00:00
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:
parent
8642b5fcb5
commit
920c0a13d6
|
@ -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';
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -16,9 +16,7 @@ class TemplateStylesContentTest extends TextContentTest {
|
|||
parent::setUp();
|
||||
|
||||
$this->overrideConfigValues( [
|
||||
MainConfigNames::TextModelsToParse => [
|
||||
'sanitized-css',
|
||||
],
|
||||
MainConfigNames::TextModelsToParse => [ 'sanitized-css' ],
|
||||
'TemplateStylesMaxStylesheetSize' => 1024000,
|
||||
] );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue