$data = self::getAllModules();
$illegalDeps = array( 'jquery', 'mediawiki' );
+ /** @var ResourceLoaderModule $module */
foreach ( $data['modules'] as $moduleName => $module ) {
foreach ( $illegalDeps as $illegalDep ) {
$this->assertNotContains(
$data = self::getAllModules();
$validDeps = array_keys( $data['modules'] );
+ /** @var ResourceLoaderModule $module */
foreach ( $data['modules'] as $moduleName => $module ) {
foreach ( $module->getDependencies() as $dep ) {
$this->assertContains(
$data = self::getAllModules();
$validDeps = array_keys( $data['modules'] );
+ /** @var ResourceLoaderModule $module */
foreach ( $data['modules'] as $moduleName => $module ) {
$moduleTargets = $module->getTargets();
foreach ( $module->getDependencies() as $dep ) {
$cases[] = array(
$method->invoke( $module, $file ),
$moduleName,
- $file,
+ ( $file instanceof ResourceLoaderFilePath ? $file->getPath() : $file ),
);
}
}