From 6634ccf99ca8fcdf94ee5ab099fc81ccea669d2f Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 23 Oct 2009 20:14:26 +0000 Subject: Creating a unit test for ElggUser git-svn-id: http://code.elgg.org/elgg/trunk@3576 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engine/lib') 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 -- cgit v1.2.3