diff options
author | cash <cash.costello@gmail.com> | 2011-11-23 11:09:42 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-23 11:09:42 -0500 |
commit | ddd7872bdfb68369d0e0e1b0401a8640b08bfc7c (patch) | |
tree | 9fe76f10bfb1f05ef51ad30e0f781f4ab753c8c0 /engine/lib | |
parent | 5d1d38ec7944b656a9766c6d64b2eb133dc4c156 (diff) | |
download | elgg-ddd7872bdfb68369d0e0e1b0401a8640b08bfc7c.tar.gz elgg-ddd7872bdfb68369d0e0e1b0401a8640b08bfc7c.tar.bz2 |
Refs #4143 adds a unit test for type/subtype where sql generation
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/river.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php index 466eca253..309aeb30f 100644 --- a/engine/lib/river.php +++ b/engine/lib/river.php @@ -611,6 +611,16 @@ function elgg_river_page_handler($page) { } /** + * Register river unit tests + * @access private + */ +function elgg_river_test($hook, $type, $value) { + global $CONFIG; + $value[] = $CONFIG->path . 'engine/tests/api/river.php'; + return $value; +} + +/** * Initialize river library * @access private */ @@ -620,6 +630,8 @@ function elgg_river_init() { elgg_register_menu_item('site', $item); elgg_register_widget_type('river_widget', elgg_echo('river:widget:title'), elgg_echo('river:widget:description')); + + elgg_register_plugin_hook_handler('unit_test', 'system', 'elgg_river_test'); } elgg_register_event_handler('init', 'system', 'elgg_river_init'); |