aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-23 20:14:26 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-23 20:14:26 +0000
commit6634ccf99ca8fcdf94ee5ab099fc81ccea669d2f (patch)
tree01423f6f26533f582fc641fec7cce502bb73abe5 /engine/lib
parente980c2ab65d7a95020d9e332fa79af81c6418bf3 (diff)
downloadelgg-6634ccf99ca8fcdf94ee5ab099fc81ccea669d2f.tar.gz
elgg-6634ccf99ca8fcdf94ee5ab099fc81ccea669d2f.tar.bz2
Creating a unit test for ElggUser
git-svn-id: http://code.elgg.org/elgg/trunk@3576 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/users.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 29a2dd42f..a15330501 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1535,3 +1535,13 @@ function users_settings_save() {
//register actions *************************************************************
register_elgg_event_handler('init','system','users_init',0);
register_elgg_event_handler('pagesetup','system','users_pagesetup',0);
+
+/**
+ * Runs unit tests for ElggObject
+ */
+register_plugin_hook('unit_test', 'system', 'users_test');
+function users_test($hook, $type, $value, $params) {
+ global $CONFIG;
+ $value[] = "{$CONFIG->path}engine/tests/objects/users.php";
+ return $value;
+} \ No newline at end of file