aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-26 14:31:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-26 14:31:14 +0000
commitf48bd5099f033cc148f9c1e3f781f8c932bda891 (patch)
treec8bb185a0dd5fa3923aebae7b2d72a0bb9991c78 /engine/lib
parent962164b97ca11d9ce155bde60f198d226ff060d3 (diff)
downloadelgg-f48bd5099f033cc148f9c1e3f781f8c932bda891.tar.gz
elgg-f48bd5099f033cc148f9c1e3f781f8c932bda891.tar.bz2
Closes #3202 'count' already supported, added unit tests
git-svn-id: http://code.elgg.org/elgg/trunk@8840 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/annotations.php11
-rw-r--r--engine/lib/metadata.php2
2 files changed, 12 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index 130ab37ab..0e446c949 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -536,3 +536,14 @@ function elgg_register_annotation_url_handler($extender_name = "all", $function_
/** Register the hook */
elgg_register_plugin_hook_handler("export", "all", "export_annotation_plugin_hook", 2);
+
+elgg_register_plugin_hook_handler('unit_test', 'system', 'annotations_test');
+
+/**
+ * Register annotation unit tests
+ */
+function annotations_test($hook, $type, $value, $params) {
+ global $CONFIG;
+ $value[] = $CONFIG->path . 'engine/tests/api/annotations.php';
+ return $value;
+}
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 3182ed077..cc9212711 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -900,6 +900,6 @@ elgg_register_plugin_hook_handler('unit_test', 'system', 'metadata_test');
*/
function metadata_test($hook, $type, $value, $params) {
global $CONFIG;
- $value[] = $CONFIG->path . 'engine/tests/objects/metadata.php';
+ $value[] = $CONFIG->path . 'engine/tests/api/metadata.php';
return $value;
} \ No newline at end of file