Added a new hook that allows extensions to add their own tests to the core test suite
This commit is contained in:
parent
c7e8669ebc
commit
7f12b94750
2 changed files with 4 additions and 0 deletions
|
|
@ -1595,6 +1595,9 @@ $rev: revision (object) that will be viewed
|
|||
$action: action name
|
||||
$article: article "acted on"
|
||||
|
||||
'UnitTestsList': Called when building a list of files with PHPUnit tests
|
||||
&$files: list of files
|
||||
|
||||
'UnwatchArticle': before a watch is removed from an article
|
||||
$user: user watching
|
||||
$article: article object to be removed
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class MWPHPUnitCommand extends PHPUnit_TextUI_Command {
|
|||
} else {
|
||||
require( dirname( __FILE__ ) . '/TestFileList.php' );
|
||||
$files = $testFiles;
|
||||
wfRunHooks( 'UnitTestsList', array( &$files ) );
|
||||
}
|
||||
foreach ( $files as $file ) {
|
||||
$suite->addTestFile( $file );
|
||||
|
|
|
|||
Loading…
Reference in a new issue