MediaWiki
REL1_24
|
Public Member Functions | |
testFileExistence ($filename, $module, $resource) | |
provideResourceFiles | |
testIllegalDependencies () | |
Verify that nothing explicitly depends on the 'jquery' and 'mediawiki' modules. | |
testMissingDependencies () | |
Verify that all modules specified as dependencies of other modules actually exist. | |
testStyleMedia ($moduleName, $media, $filename, $css) | |
provideMediaStylesheets | |
testUnsatisfiableDependencies () | |
Verify that all dependencies of all modules are always satisfiable with the 'targets' defined for the involved modules. | |
Static Public Member Functions | |
static | provideMediaStylesheets () |
Get all stylesheet files from modules that are an instance of ResourceLoaderFileModule (or one of its subclasses). | |
static | provideResourceFiles () |
Get all resource files from modules that are an instance of ResourceLoaderFileModule (or one of its subclasses). | |
Static Protected Member Functions | |
static | getAllModules () |
Get all registered modules from ResouceLoader. |
Definition at line 17 of file ResourcesTest.php.
static ResourcesTest::getAllModules | ( | ) | [static, protected] |
Get all registered modules from ResouceLoader.
Definition at line 111 of file ResourcesTest.php.
References array(), as, and global.
Referenced by provideMediaStylesheets(), provideResourceFiles(), testIllegalDependencies(), testMissingDependencies(), and testUnsatisfiableDependencies().
static ResourcesTest::provideMediaStylesheets | ( | ) | [static] |
Get all stylesheet files from modules that are an instance of ResourceLoaderFileModule (or one of its subclasses).
Definition at line 142 of file ResourcesTest.php.
References $file, $files, array(), as, and getAllModules().
static ResourcesTest::provideResourceFiles | ( | ) | [static] |
Get all resource files from modules that are an instance of ResourceLoaderFileModule (or one of its subclasses).
Since the raw data is stored in protected properties, we have to overrride this through ReflectionObject methods.
Definition at line 188 of file ResourcesTest.php.
References $file, $files, $key, $property, $value, array(), as, getAllModules(), and ResourceLoaderFilePath\getPath().
ResourcesTest::testFileExistence | ( | $ | filename, |
$ | module, | ||
$ | resource | ||
) |
provideResourceFiles
Definition at line 22 of file ResourcesTest.php.
Verify that nothing explicitly depends on the 'jquery' and 'mediawiki' modules.
They are always loaded, depending on them is unsupported and leads to unexpected behaviour.
Definition at line 44 of file ResourcesTest.php.
References array(), as, and getAllModules().
Verify that all modules specified as dependencies of other modules actually exist.
Definition at line 63 of file ResourcesTest.php.
References as, and getAllModules().
ResourcesTest::testStyleMedia | ( | $ | moduleName, |
$ | media, | ||
$ | filename, | ||
$ | css | ||
) |
provideMediaStylesheets
Definition at line 31 of file ResourcesTest.php.
References $css, and CSSMin\minify().
Verify that all dependencies of all modules are always satisfiable with the 'targets' defined for the involved modules.
Example: A depends on B. A has targets: mobile, desktop. B has targets: desktop. Therefore the dependency is sometimes unsatisfiable: it's impossible to load module A on mobile.
Definition at line 86 of file ResourcesTest.php.
References as, and getAllModules().