MediaWiki REL1_39
MediaWiki\Hook\UnitTestsAfterDatabaseSetupHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\UnitTestsAfterDatabaseSetupHook:

Public Member Functions

 onUnitTestsAfterDatabaseSetup ( $database, $prefix)
 This hook is called right after MediaWiki's test infrastructure has finished creating/duplicating core tables for unit tests.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UnitTestsAfterDatabaseSetup" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file UnitTestsAfterDatabaseSetupHook.php.

Member Function Documentation

◆ onUnitTestsAfterDatabaseSetup()

MediaWiki\Hook\UnitTestsAfterDatabaseSetupHook::onUnitTestsAfterDatabaseSetup ( $database,
$prefix )

This hook is called right after MediaWiki's test infrastructure has finished creating/duplicating core tables for unit tests.

Since
1.35
Parameters
IMaintainableDatabase$databaseDatabase in question
string$prefixTable prefix to be used in unit tests
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: