MediaWiki  master
ResourceLoaderFileModuleTest Class Reference

ResourceLoader. More...

Inheritance diagram for ResourceLoaderFileModuleTest:
Collaboration diagram for ResourceLoaderFileModuleTest:

Public Member Functions

 provideGetScriptPackageFiles ()
 
 provideGetVersionHash ()
 
 testBomConcatenation ()
 ResourceLoaderFileModule::stripBom. More...
 
 testDeprecatedModules ( $name, $expected)
 providerDeprecatedModules ResourceLoaderFileModule::getScript More...
 
 testGetAllSkinStyleFiles ()
 ResourceLoaderFileModule::getAllStyleFiles ResourceLoaderFileModule::getAllSkinStyleFiles ResourceLoaderFileModule::getSkinStyleFiles. More...
 
 testGetScript ()
 ResourceLoaderFileModule::getScript ResourceLoaderFileModule::getScriptFiles ResourceLoaderFileModule::readScriptFiles. More...
 
 testGetScriptPackageFiles ( $moduleDefinition, $expected, $contextOptions=[])
 provideGetScriptPackageFiles ResourceLoaderFileModule::getScript ResourceLoaderFileModule::getPackageFiles ResourceLoaderFileModule::expandPackageFiles More...
 
 testGetTemplates ( $module, $expected)
 providerGetTemplates ResourceLoaderFileModule::getTemplates More...
 
 testGetVersionHash ( $a, $b, $isEqual)
 provideGetVersionHash ResourceLoaderFileModule::getDefinitionSummary ResourceLoaderFileModule::getFileHashes More...
 
 testLessFileCompilation ()
 ResourceLoaderFileModule::compileLessFile. More...
 
 testMixedCssAnnotations ()
 What happens when you mix and ? This really is an integration test, but oh well. More...
 
 testResourceLoaderFilePath ()
 Test reading files from elsewhere than localBasePath using ResourceLoaderFilePath. More...
 
 testTemplateDependencies ( $module, $expected)
 providerTemplateDependencies ResourceLoaderFileModule::__construct ResourceLoaderFileModule::getDependencies More...
 

Static Public Member Functions

static providerDeprecatedModules ()
 
static providerGetTemplates ()
 
static providerTemplateDependencies ()
 
- Static Public Member Functions inherited from ResourceLoaderTestCase
static getMinimalConfig ()
 
static getSettings ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ResourceLoaderTestCase
 getResourceLoaderContext ( $options=[], ResourceLoader $rl=null)
 
 setUp ()
 

Static Private Member Functions

static getModules ()
 
static stripNoflip ( $css)
 Strip annotations from CSS code. More...
 

Additional Inherited Members

- Public Attributes inherited from ResourceLoaderTestCase
const BLANK_VERSION = '09p30q0'
 

Detailed Description

ResourceLoader.

Definition at line 6 of file ResourceLoaderFileModuleTest.php.

Member Function Documentation

◆ getModules()

static ResourceLoaderFileModuleTest::getModules ( )
staticprivate

Definition at line 26 of file ResourceLoaderFileModuleTest.php.

References $base.

◆ provideGetScriptPackageFiles()

ResourceLoaderFileModuleTest::provideGetScriptPackageFiles ( )

◆ provideGetVersionHash()

ResourceLoaderFileModuleTest::provideGetVersionHash ( )

Definition at line 400 of file ResourceLoaderFileModuleTest.php.

References false, and true.

◆ providerDeprecatedModules()

static ResourceLoaderFileModuleTest::providerDeprecatedModules ( )
static

Definition at line 117 of file ResourceLoaderFileModuleTest.php.

◆ providerGetTemplates()

static ResourceLoaderFileModuleTest::providerGetTemplates ( )
static

Definition at line 309 of file ResourceLoaderFileModuleTest.php.

References $modules.

◆ providerTemplateDependencies()

static ResourceLoaderFileModuleTest::providerTemplateDependencies ( )
static

Definition at line 75 of file ResourceLoaderFileModuleTest.php.

References $modules.

◆ setUp()

ResourceLoaderFileModuleTest::setUp ( )
protected

◆ stripNoflip()

static ResourceLoaderFileModuleTest::stripNoflip (   $css)
staticprivate

Strip annotations from CSS code.

Parameters
string$css
Returns
string

Definition at line 219 of file ResourceLoaderFileModuleTest.php.

References $css.

◆ testBomConcatenation()

ResourceLoaderFileModuleTest::testBomConcatenation ( )

◆ testDeprecatedModules()

ResourceLoaderFileModuleTest::testDeprecatedModules (   $name,
  $expected 
)

◆ testGetAllSkinStyleFiles()

◆ testGetScript()

◆ testGetScriptPackageFiles()

ResourceLoaderFileModuleTest::testGetScriptPackageFiles (   $moduleDefinition,
  $expected,
  $contextOptions = [] 
)

◆ testGetTemplates()

ResourceLoaderFileModuleTest::testGetTemplates (   $module,
  $expected 
)

providerGetTemplates ResourceLoaderFileModule::getTemplates

Definition at line 348 of file ResourceLoaderFileModuleTest.php.

References class.

◆ testGetVersionHash()

ResourceLoaderFileModuleTest::testGetVersionHash (   $a,
  $b,
  $isEqual 
)

◆ testLessFileCompilation()

ResourceLoaderFileModuleTest::testLessFileCompilation ( )

◆ testMixedCssAnnotations()

ResourceLoaderFileModuleTest::testMixedCssAnnotations ( )

◆ testResourceLoaderFilePath()

ResourceLoaderFileModuleTest::testResourceLoaderFilePath ( )

Test reading files from elsewhere than localBasePath using ResourceLoaderFilePath.

This mimics modules modified by skins using 'ResourceModuleSkinStyles' and 'OOUIThemePaths' skin attributes.

ResourceLoaderFilePath::getLocalBasePath ResourceLoaderFilePath::getRemoteBasePath

Definition at line 277 of file ResourceLoaderFileModuleTest.php.

References $basePath, $context, and ResourceLoaderTestCase\getResourceLoaderContext().

◆ testTemplateDependencies()

ResourceLoaderFileModuleTest::testTemplateDependencies (   $module,
  $expected 
)

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