diff options
Diffstat (limited to 'engine/tests/suite.php')
| -rwxr-xr-x | engine/tests/suite.php | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/engine/tests/suite.php b/engine/tests/suite.php index 5eed796ac..baf32481f 100755 --- a/engine/tests/suite.php +++ b/engine/tests/suite.php @@ -21,6 +21,12 @@ require_once( "$test_path/elgg_unit_test.php" );  $suite = new TestSuite( 'Elgg Core Unit Tests' ); +// emit a hook to pull in all tests +$test_files = trigger_plugin_hook('unit_test', 'system', null, array()); +foreach ($test_files as $file) { +	$suite->addTestFile($file); +} +  if (!$CONFIG->debug) {  	if ( TextReporter::inCli() )  	{ | 
