aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/objects/metadata.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-30 16:05:26 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-30 16:05:26 +0000
commit0b86e98313e6c046abbcd70a4c43fa9ecb68a64a (patch)
treef6fef62822e19a7f187e93c1f0f83b1ae7c17943 /engine/tests/objects/metadata.php
parent263dab14a2164967ce5759e749ed53afe7737617 (diff)
downloadelgg-0b86e98313e6c046abbcd70a4c43fa9ecb68a64a.tar.gz
elgg-0b86e98313e6c046abbcd70a4c43fa9ecb68a64a.tar.bz2
Namespaced metadata keys for elgg_get_entities_from_metadata() so no clashes will happen with annotations.
git-svn-id: http://code.elgg.org/elgg/trunk@3607 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests/objects/metadata.php')
-rw-r--r--engine/tests/objects/metadata.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/tests/objects/metadata.php b/engine/tests/objects/metadata.php
index 2728a5add..bc6523279 100644
--- a/engine/tests/objects/metadata.php
+++ b/engine/tests/objects/metadata.php
@@ -62,20 +62,20 @@ class ElggCoreMetadataTest extends ElggCoreUnitTest {
$this->assertTrue(create_metadata($this->object->guid, 'metaUnitTest', 'tested'));
// check value with improper case
- $options = array('names' => 'metaUnitTest', 'values' => 'Tested', 'limit' => 10, 'case_sensitive' => TRUE);
+ $options = array('metadata_names' => 'metaUnitTest', 'metadata_values' => 'Tested', 'limit' => 10, 'metadata_case_sensitive' => TRUE);
$this->assertFalse(elgg_get_entities_from_metadata($options));
// compare forced case with ignored case
- $options = array('names' => 'metaUnitTest', 'values' => 'tested', 'limit' => 10, 'case_sensitive' => TRUE);
+ $options = array('metadata_names' => 'metaUnitTest', 'metadata_values' => 'tested', 'limit' => 10, 'metadata_case_sensitive' => TRUE);
$case_true = elgg_get_entities_from_metadata($options);
$this->assertIsA($case_true, 'array');
- $options = array('names' => 'metaUnitTest', 'values' => 'Tested', 'limit' => 10, 'case_sensitive' => FALSE);
+ $options = array('metadata_names' => 'metaUnitTest', 'metadata_values' => 'Tested', 'limit' => 10, 'metadata_case_sensitive' => FALSE);
$case_false = elgg_get_entities_from_metadata($options);
$this->assertIsA($case_false, 'array');
$this->assertIdentical($case_true, $case_false);
-
+
// check deprecated get_entities_from_metadata() function
$deprecated = get_entities_from_metadata('metaUnitTest', 'tested', '', '', 0, 10, 0, '', 0, FALSE, TRUE);
$this->assertIdentical($deprecated, $case_true);