Extension:MWUnit/Hooks/MWUnitCleanupAfterPage
Appearance
This feature was removed completely in version 2.0.0. |
MWUnitCleanupAfterPage | |
---|---|
Available from version 0.10 Removed in version 2.0.0 called during the cleanup of each fixture, after each test case; can be used to reset globals, restore backed up callbacks, etc. |
|
Define function: | public static function onMWUnitCleanupAfterPage( array &$page ) { ... }
|
Attach hook: | $wgHooks['MWUnitCleanupAfterPage'][] = 'MyExtensionHooks::onMWUnitCleanupAfterPage';
|
Called from: | File(s): MWUnit / src/Runner/TestSuiteRunner.php Function(s): cleanupAfterFixture |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:MWUnitCleanupAfterPage extensions.
Details
[edit]- array &$page: The fixture (page) that will be cleaned up, given as an array. The first element of this array is always the Title object of the page being cleaned up.