2020-03-03 22:50:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
|
|
2020-03-16 23:31:05 +00:00
|
|
|
use Wikimedia\Rdbms\IMaintainableDatabase;
|
|
|
|
|
|
2020-03-03 22:50:34 +00:00
|
|
|
/**
|
2020-07-13 09:05:49 +00:00
|
|
|
* @stable to implement
|
2020-03-03 22:50:34 +00:00
|
|
|
* @ingroup Hooks
|
|
|
|
|
*/
|
|
|
|
|
interface UnitTestsAfterDatabaseSetupHook {
|
|
|
|
|
/**
|
2020-03-16 23:31:05 +00:00
|
|
|
* This hook is called right after MediaWiki's test
|
2020-03-03 22:50:34 +00:00
|
|
|
* infrastructure has finished creating/duplicating core tables for unit tests.
|
|
|
|
|
*
|
|
|
|
|
* @since 1.35
|
|
|
|
|
*
|
2020-03-16 23:31:05 +00:00
|
|
|
* @param IMaintainableDatabase $database Database in question
|
|
|
|
|
* @param string $prefix Table prefix to be used in unit tests
|
2020-03-03 22:50:34 +00:00
|
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
|
|
|
*/
|
|
|
|
|
public function onUnitTestsAfterDatabaseSetup( $database, $prefix );
|
|
|
|
|
}
|