aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-17 22:18:42 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-17 22:18:42 -0500
commit1dc08335584dac4630fd7fdf638bb6c6e0d85cb3 (patch)
treef15c8c406ea60403e12b336a455b0197a13865c6
parent1403d4978bd0f9944aabc86520d49815c0fdce29 (diff)
downloadelgg-1dc08335584dac4630fd7fdf638bb6c6e0d85cb3.tar.gz
elgg-1dc08335584dac4630fd7fdf638bb6c6e0d85cb3.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);