Extension:MWUnit/Hooks/MWUnitBeforeRegisterTestCases
This feature was removed completely in version 2.0.0. |
MWUnitBeforeRegisterTestCases | |
---|---|
Available from version 0.14 Removed in version 2.0.0 called before test cases is registered; cancels the registration if false is returned |
|
Define function: | public static function onMWUnitBeforeRegisterTestCases( Title &$title, array &$tests ) { ... }
|
Attach hook: | $wgHooks['MWUnitBeforeRegisterTestCases'][] = 'MyExtensionHooks::onMWUnitBeforeRegisterTestCases';
|
Called from: | File(s): MWUnit / src/TestCaseRepository.php Function(s): registerTests |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:MWUnitBeforeRegisterTestCases extensions.
Details
edit- Title &$title: The Title object of the page on which the tests are located.
- array &$tests: An array of <testcase> tags. Each <testcase> tag has an "attributes" key, which key-value pairs and a "content" key with the content of the tag.