wiki.techinc.nl/includes/resourceloader/Hook/ResourceLoaderTestModulesHook.php
libraryupgrader 5357695270 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
  The following sniffs now pass and were enabled:
  * Generic.ControlStructures.InlineControlStructure
  * MediaWiki.PHPUnit.AssertCount.NotUsed

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)

Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
2021-07-22 03:36:05 +00:00

34 lines
1.2 KiB
PHP

<?php
namespace MediaWiki\ResourceLoader\Hook;
use ResourceLoader;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ResourceLoaderTestModules" to register handlers implementing this interface.
*
* @deprecated since 1.33; use the QUnitTestModule static extension registration attribute instead.
* @ingroup ResourceLoaderHooks
*/
interface ResourceLoaderTestModulesHook {
/**
* Use this hook to register ResourceLoader modules that are only available
* when $wgEnableJavaScriptTest is true. Use this for test suites and
* other test-only resources.
*
* @since 1.35
* @param array &$testModules One array of modules per test framework.
* The modules array follows the same format as `$wgResourceModules`.
* For example:
* $testModules['qunit']['ext.Example.test'] = [
* 'localBasePath' => __DIR__ . '/tests/qunit',
* 'remoteExtPath' => 'Example/tests/qunit',
* 'script' => [ 'tests/qunit/foo.js' ],
* 'dependencies' => [ 'ext.Example.foo' ]
* ];
* @param ResourceLoader $rl
* @return void This hook must not abort, it must return no value
*/
public function onResourceLoaderTestModules( array &$testModules, ResourceLoader $rl ): void;
}