aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-17 22:18:42 -0500
committercash <cash.costello@gmail.com>2011-11-28 21:43:59 -0500
commit53f140a4bd43e0f55765da30517b0d72d5e6da7d (patch)
tree6e55eca3cd0585283e4e07c7768d2057a6a5b498
parent68ee90fc6c1ff9db8d5f90c3276d5a1d3d61873d (diff)
downloadelgg-53f140a4bd43e0f55765da30517b0d72d5e6da7d.tar.gz
elgg-53f140a4bd43e0f55765da30517b0d72d5e6da7d.tar.bz2
Fixes #4120 metadata tests now check for the correct types
-rw-r--r--engine/tests/api/metadata.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/tests/api/metadata.php b/engine/tests/api/metadata.php
index 7897b8d47..f5b615ca8 100644
--- a/engine/tests/api/metadata.php
+++ b/engine/tests/api/metadata.php
@@ -58,11 +58,11 @@ class ElggCoreMetadataAPITest extends ElggCoreUnitTest {
$this->create_metastring('tested');
// create_metadata returns id of metadata on success
- $this->assertTrue(create_metadata($this->object->guid, 'metaUnitTest', 'tested'));
+ $this->assertNotEqual(false, create_metadata($this->object->guid, 'metaUnitTest', 'tested'));
// check value with improper case
$options = array('metadata_names' => 'metaUnitTest', 'metadata_values' => 'Tested', 'limit' => 10, 'metadata_case_sensitive' => TRUE);
- $this->assertFalse(elgg_get_entities_from_metadata($options));
+ $this->assertIdentical(array(), elgg_get_entities_from_metadata($options));
// compare forced case with ignored case
$options = array('metadata_names' => 'metaUnitTest', 'metadata_values' => 'tested', 'limit' => 10, 'metadata_case_sensitive' => TRUE);