diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 10 |
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 |