MediaWiki  master
ResourceLoaderTestCase Class Reference
Inheritance diagram for ResourceLoaderTestCase:
Collaboration diagram for ResourceLoaderTestCase:

Static Public Member Functions

static getMinimalConfig ()
 
static getSettings ()
 

Public Attributes

const BLANK_VERSION = '09p30q0'
 

Protected Member Functions

 getResourceLoaderContext ( $options=[], ResourceLoader $rl=null)
 
 setUp ()
 

Detailed Description

Definition at line 6 of file ResourceLoaderTestCase.php.

Member Function Documentation

◆ getMinimalConfig()

static ResourceLoaderTestCase::getMinimalConfig ( )
static

◆ getResourceLoaderContext()

ResourceLoaderTestCase::getResourceLoaderContext (   $options = [],
ResourceLoader  $rl = null 
)
protected
Parameters
array | string$optionsLanguage code or options array
  • string 'lang' Language code
  • string 'dir' Language direction (ltr or rtl)
  • string 'modules' Pipe-separated list of module names
  • string|null 'only' "scripts" (unwrapped script), "styles" (stylesheet), or null (mw.loader.implement).
ResourceLoader | null$rl
Returns
ResourceLoaderContext

Definition at line 22 of file ResourceLoaderTestCase.php.

References $options, $request, $resourceLoader, class, and null.

Referenced by ResourceLoaderFileModuleTest\testBomConcatenation(), ResourceLoaderModuleTest\testBuildContentScripts(), ResourceLoaderFileModuleTest\testDeprecatedModules(), ResourceLoaderTest\testGetCombinedVersion(), ResourceLoaderWikiModuleTest\testGetContent(), ResourceLoaderWikiModuleTest\testGetContentForRedirects(), ResourceLoaderModuleTest\testGetHeaders(), ResourceLoaderImageTest\testGetImageData(), ResourceLoaderStartUpModuleTest\testGetModuleRegistrations(), ResourceLoaderImageTest\testGetPath(), ResourceLoaderFileModuleTest\testGetScript(), ResourceLoaderFileModuleTest\testGetScriptPackageFiles(), ResourceLoaderImageModuleTest\testGetStyleDeclarations(), ResourceLoaderImageModuleTest\testGetStyles(), ResourceLoaderModuleTest\testGetVersionHash(), ResourceLoaderFileModuleTest\testGetVersionHash(), ResourceLoaderModuleTest\testGetVersionHash_parentDefinition(), ResourceLoaderStartUpModuleTest\testGetVersionHash_varyConfig(), ResourceLoaderStartUpModuleTest\testGetVersionHash_varyDeps(), ResourceLoaderStartUpModuleTest\testGetVersionHash_varyModule(), LessFileCompilationTest\testLessFileCompilation(), ResourceLoaderFileModuleTest\testLessFileCompilation(), ResourceLoaderTest\testMakeModuleResponseConcat(), ResourceLoaderTest\testMakeModuleResponseEmpty(), ResourceLoaderTest\testMakeModuleResponseError(), ResourceLoaderTest\testMakeModuleResponseErrorCSS(), ResourceLoaderTest\testMakeModuleResponseExtraHeaders(), ResourceLoaderTest\testMakeModuleResponseExtraHeadersMulti(), ResourceLoaderTest\testMakeModuleResponseStartupError(), ResourceLoaderFileModuleTest\testMixedCssAnnotations(), ResourceLoaderOOUIImageModuleTest\testNonDefaultSkin(), ResourceLoaderStartUpModuleTest\testRegistrationsMinified(), ResourceLoaderStartUpModuleTest\testRegistrationsUnminified(), ResourceLoaderImageModuleTest\testResourceLoaderFilePath(), ResourceLoaderFileModuleTest\testResourceLoaderFilePath(), ResourceLoaderTest\testRespondEmpty(), ResourceLoaderTest\testRespondInternalFailures(), ResourceLoaderTest\testRespondSimple(), and ResourceLoaderModuleTest\testValidateScriptFile().

◆ getSettings()

static ResourceLoaderTestCase::getSettings ( )
static

Definition at line 54 of file ResourceLoaderTestCase.php.

◆ setUp()

ResourceLoaderTestCase::setUp ( )
protected

Definition at line 76 of file ResourceLoaderTestCase.php.

References $value, as, and ResourceLoader\clearCache().

Member Data Documentation

◆ BLANK_VERSION

const ResourceLoaderTestCase::BLANK_VERSION = '09p30q0'

The documentation for this class was generated from the following file: