aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/suite.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-02 21:59:32 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-02 21:59:32 +0000
commit13e62cb3c72c33042f0a30445b99500db7c765ee (patch)
tree204c82a93dd6b0987e2f8b56f2dbba69e170216e /engine/tests/suite.php
parent322bb9cd2be9e51422cb2b82684692e825c2bfb7 (diff)
downloadelgg-13e62cb3c72c33042f0a30445b99500db7c765ee.tar.gz
elgg-13e62cb3c72c33042f0a30445b99500db7c765ee.tar.bz2
Added unit tests.
git-svn-id: http://code.elgg.org/elgg/trunk@3504 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests/suite.php')
-rwxr-xr-xengine/tests/suite.php6
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() )
{