Extension:MWUnit/Hooks/MWUnitCleanupAfterPage

Category:Extension hooks#MWUnitCleanupAfterPage Category:MediaWiki deprecated or obsolete features#MWUnit/Hooks/MWUnitCleanupAfterPage
MWUnitCleanupAfterPage
Available from version 0.10
Removed in version 2.0.0Category:Removed extension hooks#MWUnitCleanupAfterPage
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): Category:Extension hooks provided by MWUnitMWUnit / 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

  • 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.
Category:Extension hooks Category:Extension hooks provided by MWUnit Category:MediaWiki deprecated or obsolete features Category:Removed extension hooks